issues spotted by herb.
authorLuke Leighton <lkcl@samba.org>
Mon, 7 Dec 1998 21:40:53 +0000 (21:40 +0000)
committerLuke Leighton <lkcl@samba.org>
Mon, 7 Dec 1998 21:40:53 +0000 (21:40 +0000)
(This used to be commit 57e025494692b1e54d4d83192e6c15d4d1454353)

source3/rpcclient/cmd_samr.c
source3/smbwrapper/smbw_dir.c

index e815a2b4d3f042438abb1ce12ced1fe19fb411c8..a24e474af5e4a74fc1e84c3e1a46d8e63af97f36 100644 (file)
@@ -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);
index 3dd10d49253ecddd59e6f28d4cbeae7df707ed11..7c6e6db70adb5bacbb70426ff5671d772983e1df 100644 (file)
@@ -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;