]> andersk Git - nss_nonlocal.git/blobdiff - nonlocal-passwd.c
Change type of buflen to size_t.
[nss_nonlocal.git] / nonlocal-passwd.c
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.081315 seconds and 4 git commands to generate.