]> andersk Git - nss_nonlocal.git/commitdiff
Change type of buflen to size_t.
authorAnders Kaseorg <andersk@mit.edu>
Fri, 21 Aug 2009 02:35:38 +0000 (22:35 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Fri, 21 Aug 2009 02:35:38 +0000 (22:35 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
nonlocal-group.c
nonlocal-passwd.c

index e21ac84562d190aed6ee9ad47667c76fdb3a1b2d..a7042416ac459ce18542c2cf3a5a04e496ae3e48 100644 (file)
@@ -81,7 +81,7 @@ check_nonlocal_gid(const char *user, gid_t gid, int *errnop)
     struct group gbuf;
     int old_errno = errno;
 
-    int buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
+    size_t buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
     char *buf = malloc(buflen);
     if (buf == NULL) {
        *errnop = ENOMEM;
index a5570df6040f7217b69ea4a849f97bbe1ca08b4a..e915ea0a2fa15d4b1ffe22f1812e8781806a19f7 100644 (file)
@@ -79,7 +79,7 @@ check_nonlocal_uid(const char *user, uid_t uid, int *errnop)
     struct passwd pwbuf;
     int old_errno = errno;
 
-    int buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
+    size_t buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
     char *buf = malloc(buflen);
     if (buf == NULL) {
        *errnop = ENOMEM;
@@ -140,7 +140,7 @@ check_nonlocal_user(const char *user, int *errnop)
     struct passwd pwbuf;
     int old_errno = errno;
 
-    int buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
+    size_t buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
     char *buf = malloc(buflen);
     if (buf == NULL) {
        *errnop = ENOMEM;
This page took 0.500032 seconds and 5 git commands to generate.