diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2009-03-18 16:57:39 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2009-03-18 16:57:39 -0700 |
commit | c0bb49c582717dbf1a246dc38b7ab41519e13d5e (patch) | |
tree | 116d2cf5b45d16521d6bfffa5073bfd20e50b60b /netcat.c | |
parent | 6fc2e7182a81d3665e5233a6555fc6c1960b6b8a (diff) | |
parent | cd9bf8b9107148535d80f7be53fcdac0b63fc3eb (diff) | |
download | netcat-c0bb49c582717dbf1a246dc38b7ab41519e13d5e.tar.gz |
Merge commit 'remotes/korg/cupcake' into cupcake_to_master
Diffstat (limited to 'netcat.c')
-rw-r--r-- | netcat.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -30,10 +30,14 @@ /* conditional includes -- a very messy section which you may have to dink for your own architecture [and please send diffs...]: */ -/* #undef _POSIX_SOURCE /* might need this for something? */ +#if 0 +#undef _POSIX_SOURCE /* might need this for something? */ +#endif #define HAVE_BIND /* ASSUMPTION -- seems to work everywhere! */ #define HAVE_HELP /* undefine if you dont want the help text */ -/* #define ANAL /* if you want case-sensitive DNS matching */ +#if 0 +#define ANAL /* if you want case-sensitive DNS matching */ +#endif #ifdef HAVE_STDLIB_H #include <stdlib.h> @@ -948,7 +952,7 @@ dol_err: Use the time delay between writes if given, otherwise use the "tcp ping" trick for getting the RTT. [I got that idea from pluvius, and warped it.] Return either the original fd, or clean up and return -1. */ -udptest (fd, where) +int udptest (fd, where) int fd; IA * where; { @@ -1296,7 +1300,7 @@ Debug (("wrote %d to net, errno %d", rr, errno)) /* main : now we pull it all together... */ -main (argc, argv) +int main (argc, argv) int argc; char ** argv; { @@ -1631,6 +1635,7 @@ Debug (("netfd %d from port %d to port %d", netfd, ourport, curport)) #ifdef HAVE_HELP /* unless we wanna be *really* cryptic */ /* helpme : the obvious */ +void helpme() { o_verbose = 1; |