From 801d62589850b414bde37875bb66405d3ee5bb9e Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Mon, 7 Dec 1998 21:40:53 +0000 Subject: [PATCH] issues spotted by herb. (This used to be commit 57e025494692b1e54d4d83192e6c15d4d1454353) --- source3/rpcclient/cmd_samr.c | 4 ++-- source3/smbwrapper/smbw_dir.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index e815a2b4d3f..a24e474af5e 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -381,9 +381,9 @@ void cmd_sam_add_aliasmem(struct client_info *info) uint32 flags = 0x200003f3; /* absolutely no idea. */ uint32 alias_rid; const char **names = NULL; - uint32 num_names = 0; + int num_names = 0; DOM_SID *sids = NULL; - uint32 num_sids = 0; + int num_sids = 0; int i; sid_copy(&sid1, &info->dom.level5_sid); diff --git a/source3/smbwrapper/smbw_dir.c b/source3/smbwrapper/smbw_dir.c index 3dd10d49253..7c6e6db70ad 100644 --- a/source3/smbwrapper/smbw_dir.c +++ b/source3/smbwrapper/smbw_dir.c @@ -147,7 +147,7 @@ static void smbw_printjob_add(struct print_job_info *job) finfo.atime = job->t; finfo.ctime = job->t; finfo.uid = (uid_t)-1; - nametouid(job->user, finfo.uid); + nametouid(job->user, &finfo.uid); finfo.mode = aRONLY; finfo.size = job->size; -- 2.34.1