X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/3e2e5fab72e861e677586726f1420d2db3f1efd0..0b6f56ccd83f0715e55855b4ddbdc7db897c4a7a:/client/adnstest.c 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