diff options
author | Roland McGrath <roland@gnu.org> | 2003-03-16 01:04:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-03-16 01:04:03 +0000 |
commit | 638bb1f3941f1714659150a2202627d3820d6b05 (patch) | |
tree | a101f92e76c6b8f0f94606a23480a4712850eb4a /nscd/nscd_getpw_r.c | |
parent | e993ec9a5b59d64e7037182376f3928af752ccf3 (diff) | |
download | glibc-638bb1f3941f1714659150a2202627d3820d6b05.tar glibc-638bb1f3941f1714659150a2202627d3820d6b05.tar.gz glibc-638bb1f3941f1714659150a2202627d3820d6b05.tar.bz2 glibc-638bb1f3941f1714659150a2202627d3820d6b05.zip |
* nscd/cache.c (cache_search): Give first arg type `request_type'.
* nscd/nscd.h: Update decl.
* nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
* nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
* elf/dl-close.c (_dl_close): Likewise.
* sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
* io/fts.c (fts_build): Likewise.
* elf/cache.c (add_to_cache): Likewise.
* locale/programs/locarchive.c (show_archive_content): Likewise.
* posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
* include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
happy.
(__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
Diffstat (limited to 'nscd/nscd_getpw_r.c')
-rw-r--r-- | nscd/nscd_getpw_r.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nscd/nscd_getpw_r.c b/nscd/nscd_getpw_r.c index f4fa75fa6f..160e9ffa27 100644 --- a/nscd/nscd_getpw_r.c +++ b/nscd/nscd_getpw_r.c @@ -113,8 +113,8 @@ nscd_getpw_r (const char *key, size_t keylen, request_type type, vec[1].iov_base = (void *) key; vec[1].iov_len = keylen; - nbytes = (size_t) TEMP_FAILURE_RETRY (__writev (sock, vec, 2)); - if (nbytes != sizeof (request_header) + keylen) + nbytes = TEMP_FAILURE_RETRY (__writev (sock, vec, 2)); + if (nbytes != (ssize_t) (sizeof (request_header) + keylen)) { __close (sock); return -1; @@ -122,7 +122,7 @@ nscd_getpw_r (const char *key, size_t keylen, request_type type, nbytes = TEMP_FAILURE_RETRY (__read (sock, &pw_resp, sizeof (pw_response_header))); - if (nbytes != sizeof (pw_response_header)) + if (nbytes != (ssize_t) sizeof (pw_response_header)) { __close (sock); return -1; |