From d1de2b4d3999dda96df9156da30a239af3b2b88e 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_unixids_to_sids() --- source3/winbindd/idmap_tdb_common.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source3/winbindd/idmap_tdb_common.c b/source3/winbindd/idmap_tdb_common.c index 2b16d0ba31..b232729763 100644 --- a/source3/winbindd/idmap_tdb_common.c +++ b/source3/winbindd/idmap_tdb_common.c @@ -320,9 +320,11 @@ NTSTATUS idmap_tdb_common_unixids_to_sids(struct idmap_domain * dom, talloc_get_type_abort(dom->private_data, struct idmap_tdb_common_context); - unixid_to_sid_fn = - (ctx->unixid_to_sid_fn == - NULL) ? idmap_tdb_common_unixid_to_sid : ctx->unixid_to_sid_fn; + if (ctx->unixid_to_sid_fn == NULL) { + unixid_to_sid_fn = idmap_tdb_common_unixid_to_sid; + } else { + unixid_to_sid_fn = ctx->unixid_to_sid_fn; + } /* initialize the status to avoid surprise */ for (i = 0; ids[i]; i++) { -- cgit