diff options
author | markm <markm@FreeBSD.org> | 2001-11-30 22:09:10 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-11-30 22:09:10 +0000 |
commit | 57acab063b3ef9760ddafee33cca79b6f179421a (patch) | |
tree | 872c39a50cab6fcadd1ac8e8806bfb0b5f2c9bd9 /usr.bin/telnet/network.c | |
parent | b72e252a0180e401fa4d5bd71ab4374f6f6e2735 (diff) | |
download | FreeBSD-src-57acab063b3ef9760ddafee33cca79b6f179421a.zip FreeBSD-src-57acab063b3ef9760ddafee33cca79b6f179421a.tar.gz |
After running "make unifdef", commit the result. This code is now
a complete subset of the crypto (master) code.
Diffstat (limited to 'usr.bin/telnet/network.c')
-rw-r--r-- | usr.bin/telnet/network.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/usr.bin/telnet/network.c b/usr.bin/telnet/network.c index 5c9b0c5..554db4f 100644 --- a/usr.bin/telnet/network.c +++ b/usr.bin/telnet/network.c @@ -31,14 +31,13 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> + +__FBSDID("$FreeBSD$"); + #ifndef lint -#if 0 static const char sccsid[] = "@(#)network.c 8.2 (Berkeley) 12/15/93"; -#else -static const char rcsid[] = - "$FreeBSD$"; #endif -#endif /* not lint */ #include <sys/types.h> #include <sys/socket.h> @@ -62,8 +61,8 @@ unsigned char netobuf[2*BUFSIZ], netibuf[BUFSIZ]; * Initialize internal network data structures. */ - void -init_network() +void +init_network(void) { if (ring_init(&netoring, netobuf, sizeof netobuf) != 1) { exit(1); @@ -80,10 +79,10 @@ init_network() * Telnet "synch" processing). */ - int -stilloob() +int +stilloob(void) { - static struct timeval timeout = { 0 }; + static struct timeval timeout = { 0, 0 }; fd_set excepts; int value; @@ -112,8 +111,8 @@ stilloob() * Sets "neturg" to the current location. */ - void -setneturg() +void +setneturg(void) { ring_mark(&netoring); } @@ -128,11 +127,10 @@ setneturg() * useful work. */ - - int -netflush() +int +netflush(void) { - register int n, n1; + int n, n1; if ((n1 = n = ring_full_consecutive(&netoring)) > 0) { if (!ring_at_mark(&netoring)) { |