summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkstailey <kstailey@openbsd.org>1997-04-03 02:12:57 +0000
committerkstailey <kstailey@openbsd.org>1997-04-03 02:12:57 +0000
commita9bab26044dc85ef9495938a1bb10c602389ded7 (patch)
tree602a22801849290a237f9a898ef50a7a41a2b94f /lib/libc
parentper wishes of deraadt add ufs to default fs's to search. (diff)
downloadwireguard-openbsd-a9bab26044dc85ef9495938a1bb10c602389ded7.tar.xz
wireguard-openbsd-a9bab26044dc85ef9495938a1bb10c602389ded7.zip
add htonl()
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/getnetent.c4
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)