summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getservbyport.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/getservbyport.c')
-rw-r--r--lib/libc/net/getservbyport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/getservbyport.c b/lib/libc/net/getservbyport.c
index a24f8df..ef9a2e8 100644
--- a/lib/libc/net/getservbyport.c
+++ b/lib/libc/net/getservbyport.c
@@ -56,7 +56,7 @@ getservbyport(port, proto)
#endif
setservent(_serv_stayopen);
- while (p = getservent()) {
+ while ( (p = getservent()) ) {
if (p->s_port != port)
continue;
if (proto == 0 || strcmp(p->s_proto, proto) == 0)
OpenPOWER on IntegriCloud