about summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-16 03:22:41 +0000
committerRoland McGrath <roland@gnu.org>2003-03-16 03:22:41 +0000
commiteb64f8cbe3fd1b8e10b1269fa345ea2a0caa976c (patch)
tree7661571a7ea2348d5be1e7aaceb087091fe3903a /nscd
parent385cce415c0060f315b1cbd9260416f54e5853cf (diff)
downloadglibc-eb64f8cbe3fd1b8e10b1269fa345ea2a0caa976c.tar.gz
glibc-eb64f8cbe3fd1b8e10b1269fa345ea2a0caa976c.tar.xz
glibc-eb64f8cbe3fd1b8e10b1269fa345ea2a0caa976c.zip
* 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.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/nscd_getgr_r.c2
-rw-r--r--nscd/nscd_getpw_r.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/nscd/nscd_getgr_r.c b/nscd/nscd_getgr_r.c
index 2d09ed92f2..1769ff1c6e 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 160e9ffa27..7e7ed619c8 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
     {