summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-12-07 21:40:53 +0000
committerLuke Leighton <lkcl@samba.org>1998-12-07 21:40:53 +0000
commit801d62589850b414bde37875bb66405d3ee5bb9e (patch)
tree166108a634e3457e87f69daa0451d4b10fc8cd41
parent699bae847f3a29514d06424bf20e98e96dd89d8a (diff)
downloadsamba-801d62589850b414bde37875bb66405d3ee5bb9e.tar.gz
samba-801d62589850b414bde37875bb66405d3ee5bb9e.tar.bz2
samba-801d62589850b414bde37875bb66405d3ee5bb9e.zip
issues spotted by herb.
(This used to be commit 57e025494692b1e54d4d83192e6c15d4d1454353)
-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;