From: Michael Adam Date: Wed, 19 Sep 2012 00:57:37 +0000 (+0200) Subject: s3:winbind:idmap_tdb_common: improve readability of assignment by adding an "if" X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba.git;a=commitdiff_plain;h=38994f6ff34316ad08961f62a1f57429f7968e70 s3:winbind:idmap_tdb_common: improve readability of assignment by adding an "if" in idmap_tdb_common_sids_to_unixids() --- diff --git a/source3/winbindd/idmap_tdb_common.c b/source3/winbindd/idmap_tdb_common.c index b232729763c..5713fe2f4fb 100644 --- a/source3/winbindd/idmap_tdb_common.c +++ b/source3/winbindd/idmap_tdb_common.c @@ -638,9 +638,11 @@ NTSTATUS idmap_tdb_common_sids_to_unixids(struct idmap_domain * dom, state.dom = dom; state.ids = ids; state.allocate_unmapped = false; - state.sid_to_unixid_fn = - (ctx->sid_to_unixid_fn == - NULL) ? idmap_tdb_common_sid_to_unixid : ctx->sid_to_unixid_fn; + if (ctx->sid_to_unixid_fn == NULL) { + state.sid_to_unixid_fn = idmap_tdb_common_sid_to_unixid; + } else { + state.sid_to_unixid_fn = ctx->sid_to_unixid_fn; + } ret = idmap_tdb_common_sids_to_unixids_action(ctx->db, &state);