OSSP CVS Repository

ossp - Difference in ossp-pkg/adns/adns_test.c versions 1.5 and 1.6
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/adns/adns_test.c 1.5 -> 1.6

--- adns_test.c  2000/08/12 12:01:15     1.5
+++ adns_test.c  2000/09/19 15:55:21     1.6
@@ -4,11 +4,11 @@
  */
 /*
  *  This file is
- *    Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
+ *    Copyright (C) 1997-2000 Ian Jackson <ian@davenant.greenend.org.uk>
  *
  *  It is part of adns, which is
  *    Copyright (C) 1997-2000 Ian Jackson <ian@davenant.greenend.org.uk>
- *    Copyright (C) 1999 Tony Finch <dot@dotat.at>
+ *    Copyright (C) 1999-2000 Tony Finch <dot@dotat.at>
  *  
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -36,10 +36,6 @@
 #include "adns.h"
 #include "adns_config.h"
 
-#ifndef OUTPUTSTREAM
-# define OUTPUTSTREAM stdout
-#endif
-
 struct myctx {
   adns_query qu;
   int doneyet, found;
@@ -219,6 +215,8 @@
   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)
@@ -231,8 +229,6 @@
   }
   if (r) failure_errno("init",r);
 
-  setvbuf(stdout,0,_IOLBF,0);
-  
   for (qi=0; qi<qc; qi++) {
     fdom_split(fdomlist[qi],&domain,&qflags,ownflags,sizeof(ownflags));
     if (!consistsof(ownflags,"a")) usageerr("unknown ownqueryflag");

CVSTrac 2.0.1