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/passdb | |
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/passdb')
-rw-r--r-- | source3/passdb/lookup_sid.c | 4 | ||||
-rw-r--r-- | source3/passdb/pdb_interface.c | 2 | ||||
-rw-r--r-- | source3/passdb/pdb_ldap.c | 14 |
3 files changed, 10 insertions, 10 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index a5c2d50366..c1249f5eb4 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -1319,7 +1319,7 @@ void uid_to_sid(DOM_SID *psid, uid_t uid) * the next time we ask. */ DEBUG(5, ("uid_to_sid: winbind failed to find a sid " - "for uid %u\n", uid)); + "for uid %u\n", (unsigned int)uid)); legacy_uid_to_sid(psid, uid); return; @@ -1372,7 +1372,7 @@ void gid_to_sid(DOM_SID *psid, gid_t gid) * the next time we ask. */ DEBUG(5, ("gid_to_sid: winbind failed to find a sid " - "for gid %u\n", gid)); + "for gid %u\n", (unsigned int)gid)); legacy_gid_to_sid(psid, gid); return; diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index 1909bd0da4..340867a5a6 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -1210,7 +1210,7 @@ static bool pdb_default_uid_to_sid(struct pdb_methods *methods, uid_t uid, if (!ret) { DEBUG(5, ("pdb_default_uid_to_rid: Did not find user " - "%s (%d)\n", unix_pw->pw_name, uid)); + "%s (%u)\n", unix_pw->pw_name, (unsigned int)uid)); TALLOC_FREE(sampw); return False; } diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 01b2eeced7..2d3b91f184 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -2859,8 +2859,8 @@ static NTSTATUS ldapsam_enum_group_memberships(struct pdb_methods *methods, } filter = talloc_asprintf(mem_ctx, - "(&(objectClass=%s)(|(memberUid=%s)(gidNumber=%d)))", - LDAP_OBJ_POSIXGROUP, escape_name, primary_gid); + "(&(objectClass=%s)(|(memberUid=%s)(gidNumber=%u)))", + LDAP_OBJ_POSIXGROUP, escape_name, (unsigned int)primary_gid); if (filter == NULL) { ret = NT_STATUS_NO_MEMORY; goto done; @@ -2969,7 +2969,7 @@ static NTSTATUS ldapsam_map_posixgroup(TALLOC_CTX *mem_ctx, filter = talloc_asprintf(mem_ctx, "(&(objectClass=%s)(gidNumber=%u))", - LDAP_OBJ_POSIXGROUP, map->gid); + LDAP_OBJ_POSIXGROUP, (unsigned int)map->gid); if (filter == NULL) { return NT_STATUS_NO_MEMORY; } @@ -3092,8 +3092,8 @@ static NTSTATUS ldapsam_add_group_mapping_entry(struct pdb_methods *methods, } if (pdb_gid_to_sid(map->gid, &sid)) { - DEBUG(3, ("Gid %d is already mapped to SID %s, refusing to " - "add\n", map->gid, sid_string_dbg(&sid))); + DEBUG(3, ("Gid %u is already mapped to SID %s, refusing to " + "add\n", (unsigned int)map->gid, sid_string_dbg(&sid))); result = NT_STATUS_GROUP_EXISTS; goto done; } @@ -3124,7 +3124,7 @@ static NTSTATUS ldapsam_add_group_mapping_entry(struct pdb_methods *methods, smbldap_make_mod(ldap_state->smbldap_state->ldap_struct, NULL, &mods, "description", map->comment); smbldap_make_mod(ldap_state->smbldap_state->ldap_struct, NULL, &mods, "gidNumber", - talloc_asprintf(mem_ctx, "%u", map->gid)); + talloc_asprintf(mem_ctx, "%u", (unsigned int)map->gid)); talloc_autofree_ldapmod(mem_ctx, mods); rc = smbldap_add(ldap_state->smbldap_state, dn, mods); @@ -3170,7 +3170,7 @@ static NTSTATUS ldapsam_update_group_mapping_entry(struct pdb_methods *methods, "(sambaGroupType=%d))", LDAP_OBJ_GROUPMAP, sid_string_talloc(mem_ctx, &map->sid), - map->gid, map->sid_name_use); + (unsigned int)map->gid, map->sid_name_use); if (filter == NULL) { result = NT_STATUS_NO_MEMORY; goto done; |