summary refs log tree commit diff
path: root/sunrpc/getrpcport.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/getrpcport.c')
-rw-r--r--sunrpc/getrpcport.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sunrpc/getrpcport.c b/sunrpc/getrpcport.c
index df48dc66d8..188c668c1d 100644
--- a/sunrpc/getrpcport.c
+++ b/sunrpc/getrpcport.c
@@ -56,8 +56,7 @@ getrpcport (const char *host, u_long prognum, u_long versnum, u_int proto)
 
   buflen = 1024;
   buffer = __alloca (buflen);
-  while (__gethostbyname_r (host, &hostbuf, buffer, buflen, &hp, &herr)
-	 < 0)
+  while (__gethostbyname_r (host, &hostbuf, buffer, buflen, &hp, &herr) != 0)
     if (herr != NETDB_INTERNAL || errno != ERANGE)
       return 0;
     else