*/
#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>
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)