diff options
author | 2014-10-23 16:45:57 +0000 | |
---|---|---|
committer | 2014-10-23 16:45:57 +0000 | |
commit | 0ee187a131304f77f3a51f7e7df7d033a2c3dada (patch) | |
tree | b62fe73737822aa7b76ab807ed5c3b9fee2b5733 /usr.bin/netstat/main.c | |
parent | Now that gcc2 is gone revert the removal of anonymous unions, means not having to (diff) | |
download | wireguard-openbsd-0ee187a131304f77f3a51f7e7df7d033a2c3dada.tar.xz wireguard-openbsd-0ee187a131304f77f3a51f7e7df7d033a2c3dada.zip |
Remove networks(5) support.
In particular, do not call getnetbyaddr(3), use gethostbyaddr(3) only.
Do not call setnetent(3) and the dummy sethostent(3).
OK henning@; and deraadt@ agrees with the general direction.
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r-- | usr.bin/netstat/main.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 84c753da3bd..f3074c99ef9 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.101 2014/06/23 03:46:17 guenther Exp $ */ +/* $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,13 +372,6 @@ main(int argc, char *argv[]) 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); |