diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-06-28 12:43:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-06-28 12:43:04 +0000 |
commit | 738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82 (patch) | |
tree | bc18f398e0681d23de9f337fc065fffdad6c20bb /sunrpc | |
parent | 419505579c2befc057e2687f6d7b948c417bae2c (diff) | |
download | glibc-738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82.tar glibc-738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82.tar.gz glibc-738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82.tar.bz2 glibc-738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82.zip |
Update.
1999-06-28 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/gethostid.c: Test for gethostbyname_r
function correctly.
* sunrpc/getrpcport.c: Test for gethostbyname_r function
correctly.
* sunrpc/clnt_simp.c: Test for gethostbyname_r function correctly.
* sunrpc/clnt_gen.c: Test for gethostbyname_r and getprotobyname_r
functions correctly.
* inet/rexec.c (rexec): Test for gethostbyname_r result correctly.
* inet/rcmd.c: Test for gethostbyname_r result correctly. Optimize
file reading a bit.
* sysdeps/generic/glob.c: Test for getpwnam_r result correctly.
1999-06-28 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* manual/string.texi (Copying and Concatenation): Mention that
strndup is a GNU extension.
1999-06-28 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* pwd/getpw.c (__getpw): Fix check for error return.
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/clnt_gen.c | 5 | ||||
-rw-r--r-- | sunrpc/clnt_simp.c | 2 | ||||
-rw-r--r-- | sunrpc/getrpcport.c | 3 |
3 files changed, 4 insertions, 6 deletions
diff --git a/sunrpc/clnt_gen.c b/sunrpc/clnt_gen.c index 1a2cc9141e..e8656eefc7 100644 --- a/sunrpc/clnt_gen.c +++ b/sunrpc/clnt_gen.c @@ -78,7 +78,7 @@ clnt_create (const char *hostname, u_long prog, u_long vers, hstbuflen = 1024; hsttmpbuf = __alloca (hstbuflen); while (__gethostbyname_r (hostname, &hostbuf, hsttmpbuf, hstbuflen, - &h, &herr) < 0) + &h, &herr) != 0) if (herr != NETDB_INTERNAL || errno != ERANGE) { rpc_createerr.cf_stat = RPC_UNKNOWNHOST; @@ -107,8 +107,7 @@ clnt_create (const char *hostname, u_long prog, u_long vers, prtbuflen = 1024; prttmpbuf = __alloca (prtbuflen); - while (__getprotobyname_r (proto, &protobuf, prttmpbuf, prtbuflen, &p) - < 0) + while (__getprotobyname_r (proto, &protobuf, prttmpbuf, prtbuflen, &p) != 0) if (errno != ERANGE) { rpc_createerr.cf_stat = RPC_UNKNOWNPROTO; diff --git a/sunrpc/clnt_simp.c b/sunrpc/clnt_simp.c index bf9f690573..41d106e570 100644 --- a/sunrpc/clnt_simp.c +++ b/sunrpc/clnt_simp.c @@ -105,7 +105,7 @@ callrpc (const char *host, u_long prognum, u_long versnum, u_long procnum, buflen = 1024; buffer = __alloca (buflen); while (__gethostbyname_r (host, &hostbuf, buffer, buflen, - &hp, &herr) < 0) + &hp, &herr) != 0) if (herr != NETDB_INTERNAL || errno != ERANGE) return (int) RPC_UNKNOWNHOST; else 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 |