X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/914a5ff5342e43d8a2378b1f0f65057ef084fe20..98e3fa813e15297eaa1c9858aa962d08d52c92cd:/client/adnstest.c diff --git a/client/adnstest.c b/client/adnstest.c index 2460dbf..3a5b4f1 100644 --- a/client/adnstest.c +++ b/client/adnstest.c @@ -4,10 +4,10 @@ */ /* * This file is - * Copyright (C) 1997-1999 Ian Jackson + * Copyright (C) 1997-2000 Ian Jackson * * It is part of adns, which is - * Copyright (C) 1997-1999 Ian Jackson + * Copyright (C) 1997-2000 Ian Jackson * Copyright (C) 1999 Tony Finch * * This program is free software; you can redistribute it and/or modify @@ -33,12 +33,11 @@ #include #include -#include "adns.h" - #include "config.h" +#include "adns.h" -#ifndef OUTPUTSTREAM -# define OUTPUTSTREAM stdout +#ifdef ADNS_REGRESS_TEST +# include "hredirect.h" #endif struct myctx { @@ -220,6 +219,8 @@ int main(int argc, char *const *argv) { mcs= malloc(tc ? sizeof(*mcs)*qc*tc : 1); if (!mcs) { perror("malloc mcs"); quitnow(3); } + setvbuf(stdout,0,_IOLBF,0); + if (initstring) { r= adns_init_strcfg(&ads, (adns_if_debug|adns_if_noautosys|adns_if_checkc_freq)