diff options
author | ericj <> | 2000-12-01 02:25:58 +0000 |
---|---|---|
committer | ericj <> | 2000-12-01 02:25:58 +0000 |
commit | e131d25072e3d4197ba4b9bcc0d1b27d34d6488d (patch) | |
tree | f85daadb46fdb42a014153a5b33186d76efbc2d2 | |
parent | e314b8fbec0be279347e3492668183042073aee4 (diff) | |
download | openbsd-e131d25072e3d4197ba4b9bcc0d1b27d34d6488d.tar.gz openbsd-e131d25072e3d4197ba4b9bcc0d1b27d34d6488d.tar.bz2 openbsd-e131d25072e3d4197ba4b9bcc0d1b27d34d6488d.zip |
-Wall cleanup
-rw-r--r-- | src/usr.bin/nc/netcat.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index 6a7b1bc0d6..ac0968f37e 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: netcat.c,v 1.17 2000/09/26 18:53:13 ericj Exp $ */ | 1 | /* $OpenBSD: netcat.c,v 1.18 2000/12/01 02:25:58 ericj Exp $ */ |
2 | 2 | ||
3 | /* Netcat 1.10 RELEASE 960320 | 3 | /* Netcat 1.10 RELEASE 960320 |
4 | * | 4 | * |
@@ -37,6 +37,7 @@ | |||
37 | #include <netinet/in_systm.h> | 37 | #include <netinet/in_systm.h> |
38 | #include <netinet/ip.h> | 38 | #include <netinet/ip.h> |
39 | #include <arpa/inet.h> | 39 | #include <arpa/inet.h> |
40 | #include <arpa/nameser.h> | ||
40 | #include <netdb.h> /* hostent, gethostby*, getservby* */ | 41 | #include <netdb.h> /* hostent, gethostby*, getservby* */ |
41 | #include <stdio.h> | 42 | #include <stdio.h> |
42 | #include <string.h> | 43 | #include <string.h> |
@@ -45,6 +46,7 @@ | |||
45 | #include <setjmp.h> | 46 | #include <setjmp.h> |
46 | #include <signal.h> | 47 | #include <signal.h> |
47 | #include <fcntl.h> | 48 | #include <fcntl.h> |
49 | #include <resolv.h> | ||
48 | #include <stdarg.h> | 50 | #include <stdarg.h> |
49 | #include <stdlib.h> | 51 | #include <stdlib.h> |
50 | #include <unistd.h> | 52 | #include <unistd.h> |
@@ -686,6 +688,7 @@ dol_err: | |||
686 | * trick for getting the RTT. [I got that idea from pluvius, and warped it.] | 688 | * trick for getting the RTT. [I got that idea from pluvius, and warped it.] |
687 | * Return either the original fd, or clean up and return -1. | 689 | * Return either the original fd, or clean up and return -1. |
688 | */ | 690 | */ |
691 | int | ||
689 | udptest(fd, where) | 692 | udptest(fd, where) |
690 | int fd; | 693 | int fd; |
691 | struct in_addr *where; | 694 | struct in_addr *where; |
@@ -1335,6 +1338,7 @@ main(argc, argv) | |||
1335 | */ | 1338 | */ |
1336 | void | 1339 | void |
1337 | nlog(doexit, fmt) | 1340 | nlog(doexit, fmt) |
1341 | int doexit; | ||
1338 | char *fmt; | 1342 | char *fmt; |
1339 | { | 1343 | { |
1340 | va_list args; | 1344 | va_list args; |
@@ -1359,6 +1363,7 @@ nlog(doexit, fmt) | |||
1359 | 1363 | ||
1360 | void | 1364 | void |
1361 | usage(doexit) | 1365 | usage(doexit) |
1366 | int doexit; | ||
1362 | { | 1367 | { |
1363 | fprintf(stderr, "netcat - [v1.10]\n"); | 1368 | fprintf(stderr, "netcat - [v1.10]\n"); |
1364 | fprintf(stderr, "nc [-lnrtuvz] [-e command] [-g intermediates]\n"); | 1369 | fprintf(stderr, "nc [-lnrtuvz] [-e command] [-g intermediates]\n"); |