summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getprotoname.c
diff options
context:
space:
mode:
authormillert <>1997-07-09 01:08:53 +0000
committermillert <>1997-07-09 01:08:53 +0000
commit876d3a1be4aa406672cc674a171f26878319d505 (patch)
tree72a738d612791a6e60d74a474bca3bbbcac4828c /src/lib/libc/net/getprotoname.c
parentfd3592b18f24103bfc82412a8950e5f06e549ff1 (diff)
downloadopenbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.gz
openbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.bz2
openbsd-876d3a1be4aa406672cc674a171f26878319d505.zip
Clean up some -Wall flowers.
Diffstat (limited to 'src/lib/libc/net/getprotoname.c')
-rw-r--r--src/lib/libc/net/getprotoname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/getprotoname.c b/src/lib/libc/net/getprotoname.c
index 0b057a5dd2..7a4e5fede5 100644
--- a/src/lib/libc/net/getprotoname.c
+++ b/src/lib/libc/net/getprotoname.c
@@ -32,7 +32,7 @@
32 */ 32 */
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35static char rcsid[] = "$OpenBSD: getprotoname.c,v 1.2 1996/08/19 08:28:53 tholo Exp $"; 35static char rcsid[] = "$OpenBSD: getprotoname.c,v 1.3 1997/07/09 01:08:32 millert Exp $";
36#endif /* LIBC_SCCS and not lint */ 36#endif /* LIBC_SCCS and not lint */
37 37
38#include <netdb.h> 38#include <netdb.h>
@@ -48,7 +48,7 @@ getprotobyname(name)
48 register char **cp; 48 register char **cp;
49 49
50 setprotoent(_proto_stayopen); 50 setprotoent(_proto_stayopen);
51 while (p = getprotoent()) { 51 while ((p = getprotoent())) {
52 if (strcmp(p->p_name, name) == 0) 52 if (strcmp(p->p_name, name) == 0)
53 break; 53 break;
54 for (cp = p->p_aliases; *cp != 0; cp++) 54 for (cp = p->p_aliases; *cp != 0; cp++)