diff options
author | 2018-04-28 15:09:35 +0000 | |
---|---|---|
committer | 2018-04-28 15:09:35 +0000 | |
commit | 64126f949a92ed4bac695dc0b2ff20e1da5d3acb (patch) | |
tree | f9face2a33d54102f87bee7bde7cf73513344335 /lib/libc | |
parent | To allow us to get rid of /etc/networks, make setnetent(3), (diff) | |
download | wireguard-openbsd-64126f949a92ed4bac695dc0b2ff20e1da5d3acb.tar.xz wireguard-openbsd-64126f949a92ed4bac695dc0b2ff20e1da5d3acb.zip |
Minor cleanup, no functional change:
Remove unused headers and a comment implying that we might consider
reviving these dead horses in the future, which we do not intend
to do.
OK deraadt@ guenther@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/asr/sethostent.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/libc/asr/sethostent.c b/lib/libc/asr/sethostent.c index 833df8e526d..61fa3e2fbc9 100644 --- a/lib/libc/asr/sethostent.c +++ b/lib/libc/asr/sethostent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sethostent.c,v 1.1 2012/09/08 11:08:21 eric Exp $ */ +/* $OpenBSD: sethostent.c,v 1.2 2018/04/28 15:09:35 schwarze Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -15,13 +15,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <sys/types.h> -#include <netinet/in.h> - #include <netdb.h> -#include <resolv.h> - -/* XXX these functions do nothing for now */ +#include <stddef.h> void sethostent(int stayopen) @@ -37,5 +32,5 @@ struct hostent * gethostent(void) { h_errno = NETDB_INTERNAL; - return (NULL); + return NULL; } |