diff options
Diffstat (limited to 'usr.sbin/XNSrouted/tools/query.c')
-rw-r--r-- | usr.sbin/XNSrouted/tools/query.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/XNSrouted/tools/query.c b/usr.sbin/XNSrouted/tools/query.c index 7deeac0..71b3733 100644 --- a/usr.sbin/XNSrouted/tools/query.c +++ b/usr.sbin/XNSrouted/tools/query.c @@ -74,7 +74,7 @@ char *argv[]; struct sockaddr from; int fromlen = sizeof(from); struct timeval notime; - + if (argc < 2) { printf("usage: query hosts...\n"); exit(1); @@ -96,7 +96,7 @@ char *argv[]; bzero(¬ime, sizeof(notime)); signal(SIGALRM, timeout); alarm(WTIME); - while (!timedout || + while (!timedout || select(20, &bits, 0, 0, ¬ime) > 0) { struct nspacket { struct idp hdr; @@ -191,7 +191,7 @@ timeout() timedout = 1; } getsocket(type, proto) - int type, proto; + int type, proto; { struct sockaddr_ns *sns = &myaddr; int domain = sns->sns_family; |