diff options
author | Jeremy Allison <jra@samba.org> | 2009-05-11 21:56:57 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-05-11 21:56:57 -0700 |
commit | b4c9cfb2af8f4dd5e18f032c410694e491f1bd74 (patch) | |
tree | c4cfaa30ad841a7b425ecd903edf2f0fc304f833 /source3/utils/net_sam.c | |
parent | 14c1e9fae2a34d77b0ba21ffb570e84b6e433a14 (diff) | |
download | samba-b4c9cfb2af8f4dd5e18f032c410694e491f1bd74.tar.gz samba-b4c9cfb2af8f4dd5e18f032c410694e491f1bd74.tar.bz2 samba-b4c9cfb2af8f4dd5e18f032c410694e491f1bd74.zip |
Fix a bunch of compiler warnings about wrong format types.
Should make Solaris 10 builds look cleaner.
Jeremy.
Diffstat (limited to 'source3/utils/net_sam.c')
-rw-r--r-- | source3/utils/net_sam.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/utils/net_sam.c b/source3/utils/net_sam.c index eea22c0dc2..6b3f5e5721 100644 --- a/source3/utils/net_sam.c +++ b/source3/utils/net_sam.c @@ -1490,7 +1490,7 @@ static int net_sam_provision(struct net_context *c, int argc, const char **argv) uname = talloc_strdup(tc, "domusers"); wname = talloc_strdup(tc, "Domain Users"); dn = talloc_asprintf(tc, "cn=%s,%s", "domusers", lp_ldap_group_suffix()); - gidstr = talloc_asprintf(tc, "%d", domusers_gid); + gidstr = talloc_asprintf(tc, "%u", (unsigned int)domusers_gid); gtype = talloc_asprintf(tc, "%d", SID_NAME_DOM_GRP); if (!uname || !wname || !dn || !gidstr || !gtype) { @@ -1545,7 +1545,7 @@ domu_done: uname = talloc_strdup(tc, "domadmins"); wname = talloc_strdup(tc, "Domain Admins"); dn = talloc_asprintf(tc, "cn=%s,%s", "domadmins", lp_ldap_group_suffix()); - gidstr = talloc_asprintf(tc, "%d", domadmins_gid); + gidstr = talloc_asprintf(tc, "%u", (unsigned int)domadmins_gid); gtype = talloc_asprintf(tc, "%d", SID_NAME_DOM_GRP); if (!uname || !wname || !dn || !gidstr || !gtype) { @@ -1608,8 +1608,8 @@ doma_done: } name = talloc_strdup(tc, "Administrator"); dn = talloc_asprintf(tc, "uid=Administrator,%s", lp_ldap_user_suffix()); - uidstr = talloc_asprintf(tc, "%d", uid); - gidstr = talloc_asprintf(tc, "%d", domadmins_gid); + uidstr = talloc_asprintf(tc, "%u", (unsigned int)uid); + gidstr = talloc_asprintf(tc, "%u", (unsigned int)domadmins_gid); dir = talloc_sub_specified(tc, lp_template_homedir(), "Administrator", get_global_sam_name(), @@ -1699,8 +1699,8 @@ doma_done: sid_compose(&sid, get_global_sam_sid(), DOMAIN_USER_RID_GUEST); dn = talloc_asprintf(tc, "uid=%s,%s", pwd->pw_name, lp_ldap_user_suffix ()); - uidstr = talloc_asprintf(tc, "%d", pwd->pw_uid); - gidstr = talloc_asprintf(tc, "%d", pwd->pw_gid); + uidstr = talloc_asprintf(tc, "%u", (unsigned int)pwd->pw_uid); + gidstr = talloc_asprintf(tc, "%u", (unsigned int)pwd->pw_gid); if (!dn || !uidstr || !gidstr) { d_fprintf(stderr, "Out of Memory!\n"); goto failed; @@ -1765,7 +1765,7 @@ doma_done: uname = talloc_strdup(tc, "domguests"); wname = talloc_strdup(tc, "Domain Guests"); dn = talloc_asprintf(tc, "cn=%s,%s", "domguests", lp_ldap_group_suffix()); - gidstr = talloc_asprintf(tc, "%d", pwd->pw_gid); + gidstr = talloc_asprintf(tc, "%u", (unsigned int)pwd->pw_gid); gtype = talloc_asprintf(tc, "%d", SID_NAME_DOM_GRP); if (!uname || !wname || !dn || !gidstr || !gtype) { |