summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-28 14:55:47 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-28 14:55:47 +0000
commitc79e0abdd700d978efeb9f013c0dbc2a4a4d76f9 (patch)
treee4b99adf1da48a942a7b0f8c101c7554b09efb17 /source3
parentd6739a10d0f7ef3c6034bb2690446e6575b8085b (diff)
downloadsamba-c79e0abdd700d978efeb9f013c0dbc2a4a4d76f9.tar.gz
samba-c79e0abdd700d978efeb9f013c0dbc2a4a4d76f9.tar.bz2
samba-c79e0abdd700d978efeb9f013c0dbc2a4a4d76f9.zip
fix cast
(This used to be commit af13f5e1788b6f81cfcdaeb85dc709458e3d4816)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index a4c25417ca..cba7754fc9 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -453,7 +453,7 @@ Error was %s\n", argv[0], pwd->pw_name, pfile, strerror(errno));
exit(1);
}
- sprintf(new_entry, "%s:%u:", pwd->pw_name, pwd->pw_uid);
+ sprintf(new_entry, "%s:%u:", pwd->pw_name, (unsigned)pwd->pw_uid);
p = &new_entry[strlen(new_entry)];
for( i = 0; i < 16; i++)
sprintf(&p[i*2], "%02X", new_p16[i]);