From 61859a18f0996eef8300e59788773d5f11ed9c0d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 24 Jul 2008 12:01:46 -0700 Subject: Add casts to uint32_t to match prototype for sid_append_rid(). Jeremy. (This used to be commit 15004019676a5d860f9d5fbfbecbd31fcec8bf5b) --- source3/passdb/util_unixsids.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/passdb/util_unixsids.c b/source3/passdb/util_unixsids.c index 83a5f5cab4..1b674d02a2 100644 --- a/source3/passdb/util_unixsids.c +++ b/source3/passdb/util_unixsids.c @@ -38,13 +38,13 @@ bool sid_check_is_in_unix_users(const DOM_SID *sid) bool uid_to_unix_users_sid(uid_t uid, DOM_SID *sid) { sid_copy(sid, &global_sid_Unix_Users); - return sid_append_rid(sid, uid); + return sid_append_rid(sid, (uint32_t)uid); } bool gid_to_unix_groups_sid(gid_t gid, DOM_SID *sid) { sid_copy(sid, &global_sid_Unix_Groups); - return sid_append_rid(sid, gid); + return sid_append_rid(sid, (uint32_t)gid); } const char *unix_users_domain_name(void) @@ -62,7 +62,7 @@ bool lookup_unix_user_name(const char *name, DOM_SID *sid) } sid_copy(sid, &global_sid_Unix_Users); - sid_append_rid(sid, pwd->pw_uid); /* For 64-bit uid's we have enough + sid_append_rid(sid, (uint32_t)pwd->pw_uid); /* For 64-bit uid's we have enough * space ... */ TALLOC_FREE(pwd); return True; @@ -99,7 +99,7 @@ bool lookup_unix_group_name(const char *name, DOM_SID *sid) } sid_copy(sid, &global_sid_Unix_Groups); - sid_append_rid(sid, grp->gr_gid); /* For 64-bit uid's we have enough + sid_append_rid(sid, (uint32_t)grp->gr_gid); /* For 64-bit uid's we have enough * space ... */ return True; } -- cgit