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/getprotoname.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/getprotoname.c')
-rw-r--r-- | lib/libc/net/getprotoname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/getprotoname.c b/lib/libc/net/getprotoname.c index 0b057a5dd20..7a4e5fede52 100644 --- a/lib/libc/net/getprotoname.c +++ b/lib/libc/net/getprotoname.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getprotoname.c,v 1.2 1996/08/19 08:28:53 tholo Exp $"; +static char rcsid[] = "$OpenBSD: getprotoname.c,v 1.3 1997/07/09 01:08:32 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <netdb.h> @@ -48,7 +48,7 @@ getprotobyname(name) register char **cp; setprotoent(_proto_stayopen); - while (p = getprotoent()) { + while ((p = getprotoent())) { if (strcmp(p->p_name, name) == 0) break; for (cp = p->p_aliases; *cp != 0; cp++) |