summaryrefslogtreecommitdiff
path: root/lib/libc/net/getnetbyaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/getnetbyaddr.c')
-rw-r--r--lib/libc/net/getnetbyaddr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/getnetbyaddr.c b/lib/libc/net/getnetbyaddr.c
index 76431a79a92..925d1d58957 100644
--- a/lib/libc/net/getnetbyaddr.c
+++ b/lib/libc/net/getnetbyaddr.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: getnetbyaddr.c,v 1.4 1997/04/05 21:13:06 millert Exp $";
+static char rcsid[] = "$OpenBSD: getnetbyaddr.c,v 1.5 1997/07/09 01:08:28 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <netdb.h>
@@ -47,7 +47,7 @@ _getnetbyaddr(net, type)
register struct netent *p;
setnetent(_net_stayopen);
- while (p = getnetent())
+ while ((p = getnetent()))
if (p->n_addrtype == type && p->n_net == net)
break;
if (!_net_stayopen)