summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-09-19 02:57:37 +0200
committerStefan Metzmacher <metze@samba.org>2012-09-20 05:20:38 +0200
commit38994f6ff34316ad08961f62a1f57429f7968e70 (patch)
tree1770400238deaaeb44093534307c37a1d8003284 /source3
parentd1de2b4d3999dda96df9156da30a239af3b2b88e (diff)
downloadsamba-38994f6ff34316ad08961f62a1f57429f7968e70.tar.gz
samba-38994f6ff34316ad08961f62a1f57429f7968e70.tar.bz2
samba-38994f6ff34316ad08961f62a1f57429f7968e70.zip
s3:winbind:idmap_tdb_common: improve readability of assignment by adding an "if"
in idmap_tdb_common_sids_to_unixids()
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/idmap_tdb_common.c8
1 files changed, 5 insertions, 3 deletions
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);