=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/telnet/network.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- src/usr.bin/telnet/network.c 2014/07/20 10:18:10 1.15 +++ src/usr.bin/telnet/network.c 2014/07/20 10:55:26 1.16 @@ -1,4 +1,4 @@ -/* $OpenBSD: network.c,v 1.15 2014/07/20 10:18:10 guenther Exp $ */ +/* $OpenBSD: network.c,v 1.16 2014/07/20 10:55:26 guenther Exp $ */ /* $NetBSD: network.c,v 1.5 1996/02/28 21:04:06 thorpej Exp $ */ /* @@ -35,6 +35,7 @@ #include #include #include +#include Ring netoring, netiring; unsigned char netobuf[2*BUFSIZ], netibuf[BUFSIZ]; @@ -127,7 +128,7 @@ if (errno != ENOBUFS && errno != EWOULDBLOCK) { setcommandmode(); perror(hostname); - (void)NetClose(net); + (void)close(net); ring_clear_mark(&netoring); longjmp(peerdied, -1); }