From 58720cefabfdfa87eea4aa3b9f9187c6b282ab9f Mon Sep 17 00:00:00 2001 From: millert Date: Wed, 9 Jul 1997 01:08:14 +0000 Subject: Clean up some -Wall flowers. --- lib/libc/net/getprotoname.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/net/getprotoname.c') 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 @@ -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++) -- cgit v1.2.3-59-g8ed1b