diff options
author | millert <> | 1997-07-09 01:08:53 +0000 |
---|---|---|
committer | millert <> | 1997-07-09 01:08:53 +0000 |
commit | 876d3a1be4aa406672cc674a171f26878319d505 (patch) | |
tree | 72a738d612791a6e60d74a474bca3bbbcac4828c /src/lib/libc/net/getservbyport.c | |
parent | fd3592b18f24103bfc82412a8950e5f06e549ff1 (diff) | |
download | openbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.gz openbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.bz2 openbsd-876d3a1be4aa406672cc674a171f26878319d505.zip |
Clean up some -Wall flowers.
Diffstat (limited to 'src/lib/libc/net/getservbyport.c')
-rw-r--r-- | src/lib/libc/net/getservbyport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/getservbyport.c b/src/lib/libc/net/getservbyport.c index f1911e8dcd..4b063760d2 100644 --- a/src/lib/libc/net/getservbyport.c +++ b/src/lib/libc/net/getservbyport.c | |||
@@ -32,7 +32,7 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char rcsid[] = "$OpenBSD: getservbyport.c,v 1.2 1996/08/19 08:28:57 tholo Exp $"; | 35 | static char rcsid[] = "$OpenBSD: getservbyport.c,v 1.3 1997/07/09 01:08:35 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 @@ getservbyport(port, proto) | |||
48 | register struct servent *p; | 48 | register struct servent *p; |
49 | 49 | ||
50 | setservent(_serv_stayopen); | 50 | setservent(_serv_stayopen); |
51 | while (p = getservent()) { | 51 | while ((p = getservent())) { |
52 | if (p->s_port != port) | 52 | if (p->s_port != port) |
53 | continue; | 53 | continue; |
54 | if (proto == 0 || strcmp(p->s_proto, proto) == 0) | 54 | if (proto == 0 || strcmp(p->s_proto, proto) == 0) |