chiark / gitweb /
+ * Fix <sys/fcntl.h> in client/adnsresfilter.c to <fcntl.h>.
[adns.git] / client / adnsresfilter.c
index f2657734cb833dbf2a314d136fe63e4347e61870..316b0e21534be0630dd7000225d20d122e137d76 100644 (file)
@@ -7,7 +7,7 @@
  *    Copyright (C) 1999 Ian Jackson <ian@davenant.greenend.org.uk>
  *
  *  It is part of adns, which is
- *    Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
+ *    Copyright (C) 1997-2000 Ian Jackson <ian@davenant.greenend.org.uk>
  *    Copyright (C) 1999 Tony Finch <dot@dotat.at>
  *  
  *  This program is free software; you can redistribute it and/or modify
@@ -33,7 +33,7 @@
 #include <assert.h>
 #include <ctype.h>
 
-#include <sys/fcntl.h>
+#include <fcntl.h>
 
 #include "adns.h"
 #include "config.h"
@@ -50,7 +50,7 @@ struct outqueuenode {
 };
 
 static int bracket, forever, address;
-static unsigned long timeout=100;
+static unsigned long timeout= 1000;
 static adns_rrtype rrt= adns_r_ptr;
 
 static int outblocked, inputeof;
@@ -369,7 +369,6 @@ static void readstdin(void) {
       if (!bracket && !isalnum(c)) startaddr();
     }
   }
-  if (cbyte==3 && inbyte>0 && !bracket) procaddr();
 }
 
 static void startup(void) {