diff options
author | 1997-07-09 01:08:14 +0000 | |
---|---|---|
committer | 1997-07-09 01:08:14 +0000 | |
commit | 58720cefabfdfa87eea4aa3b9f9187c6b282ab9f (patch) | |
tree | f182293e2f80c91fed9603a2876cad00234e937b /lib/libc/net/getproto.c | |
parent | #include <netgroup.h> (diff) | |
download | wireguard-openbsd-58720cefabfdfa87eea4aa3b9f9187c6b282ab9f.tar.xz wireguard-openbsd-58720cefabfdfa87eea4aa3b9f9187c6b282ab9f.zip |
Clean up some -Wall flowers.
Diffstat (limited to 'lib/libc/net/getproto.c')
-rw-r--r-- | lib/libc/net/getproto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/getproto.c b/lib/libc/net/getproto.c index 2af98dc38df..474d8d94278 100644 --- a/lib/libc/net/getproto.c +++ b/lib/libc/net/getproto.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getproto.c,v 1.2 1996/08/19 08:28:49 tholo Exp $"; +static char rcsid[] = "$OpenBSD: getproto.c,v 1.3 1997/07/09 01:08:31 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <netdb.h> @@ -46,7 +46,7 @@ getprotobynumber(proto) register struct protoent *p; setprotoent(_proto_stayopen); - while (p = getprotoent()) + while ((p = getprotoent())) if (p->p_proto == proto) break; if (!_proto_stayopen) |