X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=client%2Fadnstest.c;h=4abd4ffae8a53cd80f9c8dbe7b2d43722d461781;hb=c118a7254985626bf91312e73cfef575c6decf82;hp=c4dd6b120709b28fa3bc15f0a57aea722f2673cc;hpb=3e2e5fab72e861e677586726f1420d2db3f1efd0;p=adns.git diff --git a/client/adnstest.c b/client/adnstest.c index c4dd6b1..4abd4ff 100644 --- a/client/adnstest.c +++ b/client/adnstest.c @@ -3,7 +3,12 @@ * - simple test program, not part of the library */ /* - * This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson + * This file is + * Copyright (C) 1997-1999 Ian Jackson + * + * It is part of adns, which is + * Copyright (C) 1997-1999 Ian Jackson + * Copyright (C) 1999 Tony Finch * * 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 @@ -143,8 +148,7 @@ int main(int argc, char *const *argv) { const char *initstring, *rrtn, *fmtn; const char *const *fdomlist, *domain; char *show, *cp; - int len, i, qc, qi, tc, ti, ch, qflags, initflagsnum, npollfds, npollfdsavail, timeout; - struct pollfd *pollfds; + int len, i, qc, qi, tc, ti, ch, qflags, initflagsnum; adns_status ri; int r; const adns_rrtype *types; @@ -216,9 +220,6 @@ int main(int argc, char *const *argv) { } if (r) failure_errno("init",r); - npollfdsavail= 0; - pollfds= 0; - for (qi=0; qi