summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-02-02 21:14:55 +0000
committerJeremy Allison <jra@samba.org>2004-02-02 21:14:55 +0000
commitdac4fd693ee07f2ba7940cb09985acf3c31bf73a (patch)
tree9c44be80d5f344ee04b076c3a87f38c439b311d9 /source3/nsswitch
parentcf55869f7b1c435a90f89e468c0ea0181a1343f9 (diff)
downloadsamba-dac4fd693ee07f2ba7940cb09985acf3c31bf73a.tar.gz
samba-dac4fd693ee07f2ba7940cb09985acf3c31bf73a.tar.bz2
samba-dac4fd693ee07f2ba7940cb09985acf3c31bf73a.zip
A few fixes from "L. Lucius" <ib@digicron.com>. Don't use int when it's
really a size_t. Jeremy. (This used to be commit 2da24613ed62c6dd8465c976bdb2e3aaa33a5058)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbind_nss_linux.c6
1 files changed, 3 insertions, 3 deletions
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);