summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_samr.c4
-rw-r--r--source3/smbwrapper/smbw_dir.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index e815a2b4d3..a24e474af5 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 3dd10d4925..7c6e6db70a 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;