chiark
/
gitweb
/
~mdw
/
adns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
564bdb3
)
Undo errant checkin of fanf's changes.
author
ian
<ian>
Sat, 16 Sep 2000 19:15:10 +0000
(19:15 +0000)
committer
ian
<ian>
Sat, 16 Sep 2000 19:15:10 +0000
(19:15 +0000)
client/adnslogres.c
patch
|
blob
|
blame
|
history
diff --git
a/client/adnslogres.c
b/client/adnslogres.c
index ac2aad8a64261f944cab8b94cde26f96083bdb09..b8e5f52a000b2553d50d1e2b8bcf369dc838ee10 100644
(file)
--- a/
client/adnslogres.c
+++ b/
client/adnslogres.c
@@
-4,12
+4,12
@@
*/
/*
* This file is
*/
/*
* This file is
- * Copyright (C) 1999
-2000
Tony Finch <dot@dotat.at>
+ * Copyright (C) 1999 Tony Finch <dot@dotat.at>
* Copyright (C) 1999-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-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
-2000
Tony Finch <dot@dotat.at>
+ * Copyright (C) 1999 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
*
* 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
@@
-48,8
+48,7
@@
static const char * const cvsid =
#include "adns.h"
/* maximum number of concurrent DNS queries */
#include "adns.h"
/* maximum number of concurrent DNS queries */
-#define MAXPENDING 64000
-#define MAXPENDING 64000
+#define MAXPENDING 1000
/* maximum length of a line */
#define MAXLINE 1024
/* maximum length of a line */
#define MAXLINE 1024
@@
-205,13
+204,12
@@
static void proclog(FILE *inf, FILE *outf, int opts) {
}
static void usage(void) {
}
static void usage(void) {
- fprintf(stderr, "usage: %s [-d] [-p] [
-c concurrency] [
logfile]\n", progname);
+ fprintf(stderr, "usage: %s [-d] [-p] [logfile]\n", progname);
exit(1);
}
int main(int argc, char *argv[]) {
exit(1);
}
int main(int argc, char *argv[]) {
- int c, opts, maxpending;
- extern char *optarg;
+ int c, opts;
FILE *inf;
progname= strrchr(*argv, '/');
FILE *inf;
progname= strrchr(*argv, '/');
@@
-219,18
+217,10
@@
int main(int argc, char *argv[]) {
progname++;
else
progname= *argv;
progname++;
else
progname= *argv;
-
- maxpending= MAXPENDING;
opts= 0;
opts= 0;
- while ((c= getopt(argc, argv, "c:dp")) != -1)
+
+ while ((c= getopt(argc, argv, "dp")) != -1)
switch (c) {
switch (c) {
- case 'c':
- maxpending= atoi(optarg);
- if (maxpending < 1 || maxpending > MAXPENDING) {
- fprintf(stderr, "%s: unfeasible concurrency %d\n", progname, maxpending);
- exit(1);
- }
- break;
case 'd':
opts|= OPT_DEBUG;
break;
case 'd':
opts|= OPT_DEBUG;
break;
@@
-255,7
+245,7
@@
int main(int argc, char *argv[]) {
if (!inf)
aargh("couldn't open input");
if (!inf)
aargh("couldn't open input");
- proclog(inf, stdout,
maxpending,
opts);
+ proclog(inf, stdout, opts);
if (fclose(inf))
aargh("fclose input");
if (fclose(inf))
aargh("fclose input");