From 38994f6ff34316ad08961f62a1f57429f7968e70 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 19 Sep 2012 02:57:37 +0200 Subject: s3:winbind:idmap_tdb_common: improve readability of assignment by adding an "if" in idmap_tdb_common_sids_to_unixids() --- source3/winbindd/idmap_tdb_common.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/winbindd/idmap_tdb_common.c b/source3/winbindd/idmap_tdb_common.c index b232729763..5713fe2f4f 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); -- cgit