diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-04-03 02:12:58 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-04-03 02:12:58 +0000 |
commit | a26931ee973597fd7536c90993b69e2edf5f390a (patch) | |
tree | 829fbf014e5124e023fa119aae3cd71656cba27c | |
parent | d6564c01bff9b2b73f5321307f70b5cd3f1432b4 (diff) |
add htonl()
-rw-r--r-- | lib/libc/net/getnetent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/getnetent.c b/lib/libc/net/getnetent.c index 8c3ced2214d..f37f2543ee7 100644 --- a/lib/libc/net/getnetent.c +++ b/lib/libc/net/getnetent.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getnetent.c,v 1.5 1996/09/03 07:27:45 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: getnetent.c,v 1.6 1997/04/03 02:12:57 kstailey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -102,7 +102,7 @@ again: p = strpbrk(cp, " \t"); if (p != NULL) *p++ = '\0'; - net.n_net = inet_network(cp); + net.n_net = htonl(inet_network(cp)); net.n_addrtype = AF_INET; q = net.n_aliases = net_aliases; if (p != NULL) |