X-Git-Url: http://andersk.mit.edu/gitweb/nss_nonlocal.git/blobdiff_plain/d7bf1d1107cc32708a01f9b9dc1fbfa6874f0d95..8870ee9ca4ea1fbe316f18448d5c73f31ad729c7:/nonlocal-passwd.c diff --git a/nonlocal-passwd.c b/nonlocal-passwd.c index a5570df..e915ea0 100644 --- a/nonlocal-passwd.c +++ b/nonlocal-passwd.c @@ -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;