From dac4fd693ee07f2ba7940cb09985acf3c31bf73a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 2 Feb 2004 21:14:55 +0000 Subject: A few fixes from "L. Lucius" . Don't use int when it's really a size_t. Jeremy. (This used to be commit 2da24613ed62c6dd8465c976bdb2e3aaa33a5058) --- source3/nsswitch/winbind_nss_linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbind_nss_linux.c b/source3/nsswitch/winbind_nss_linux.c index 362047f62b..ae2bcc7ade 100644 --- a/source3/nsswitch/winbind_nss_linux.c +++ b/source3/nsswitch/winbind_nss_linux.c @@ -38,7 +38,7 @@ extern int winbindd_fd; are the pointers passed in by the C library to the _nss_ntdom_* functions. */ -static char *get_static(char **buffer, int *buflen, int len) +static char *get_static(char **buffer, size_t *buflen, size_t len) { char *result; @@ -1080,7 +1080,7 @@ _nss_winbind_uidtosid(uid_t uid, char **sid, char *buffer, struct winbindd_request request; #ifdef DEBUG_NSS - fprintf(stderr, "[%5d]: uidtosid %s\n", getpid(), name); + fprintf(stderr, "[%5u]: uidtosid %u\n", (unsigned int)getpid(), (unsigned int)uid); #endif ZERO_STRUCT(response); @@ -1119,7 +1119,7 @@ _nss_winbind_gidtosid(gid_t gid, char **sid, char *buffer, struct winbindd_request request; #ifdef DEBUG_NSS - fprintf(stderr, "[%5d]: gidtosid %s\n", getpid(), name); + fprintf(stderr, "[%5u]: gidtosid %u\n", (unsigned int)getpid(), (unsigned int)gid); #endif ZERO_STRUCT(response); -- cgit