summaryrefslogtreecommitdiff
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
commitaf13f5e1788b6f81cfcdaeb85dc709458e3d4816 (patch)
tree86f70611e2f7e324251e4a67a4e392b3421cc754
parent4db076e08bec525ee908a391b22fdc12cc66bc27 (diff)
downloadsamba-af13f5e1788b6f81cfcdaeb85dc709458e3d4816.tar.gz
fix cast
-rw-r--r--source/utils/smbpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c
index a4c25417ca2..cba7754fc93 100644
--- a/source/utils/smbpasswd.c
+++ b/source/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]);