=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/main.c,v retrieving revision 1.101 retrieving revision 1.102 diff -c -r1.101 -r1.102 *** src/usr.bin/netstat/main.c 2014/06/23 03:46:17 1.101 --- src/usr.bin/netstat/main.c 2014/10/23 16:45:57 1.102 *************** *** 1,4 **** ! /* $OpenBSD: main.c,v 1.101 2014/06/23 03:46:17 guenther Exp $ */ /* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: main.c,v 1.102 2014/10/23 16:45:57 schwarze Exp $ */ /* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */ /* *************** *** 372,384 **** printproto(tp, tp->pr_name, af, tableid, pcbaddr); exit(0); } - /* - * Keep file descriptors open to avoid overhead - * of open/close on each call to get* routines. - */ - sethostent(1); - setnetent(1); - if (iflag) { intpr(interval, repeatcount); exit(0); --- 372,377 ----