From eb64f8cbe3fd1b8e10b1269fa345ea2a0caa976c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 16 Mar 2003 03:22:41 +0000 Subject: * posix/fnmatch_loop.c: Add casts for signedness. * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise. * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN. * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT. --- nscd/nscd_getgr_r.c | 2 +- nscd/nscd_getpw_r.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'nscd') diff --git a/nscd/nscd_getgr_r.c b/nscd/nscd_getgr_r.c index 2d09ed9..1769ff1 100644 --- a/nscd/nscd_getgr_r.c +++ b/nscd/nscd_getgr_r.c @@ -143,7 +143,7 @@ nscd_getgr_r (const char *key, size_t keylen, request_type type, char *p = buffer; size_t total_len; uintptr_t align; - size_t cnt; + nscd_ssize_t cnt; /* Now allocate the buffer the array for the group members. We must align the pointer. */ diff --git a/nscd/nscd_getpw_r.c b/nscd/nscd_getpw_r.c index 160e9ff..7e7ed61 100644 --- a/nscd/nscd_getpw_r.c +++ b/nscd/nscd_getpw_r.c @@ -173,7 +173,7 @@ nscd_getpw_r (const char *key, size_t keylen, request_type type, __close (sock); - return nbytes == total ? 0 : -1; + return nbytes == (ssize_t) total ? 0 : -1; } else { -- cgit v1.1