summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2007-09-11 23:04:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:40 -0500
commitc49699d15b96c3479526fdc4fb1996dc9e5c17b9 (patch)
tree9c48006da3c6bbee8432354e60d41431d7f9732e /source3
parent1cc01f224980a9cc836212fed15ccb88b1441e30 (diff)
downloadsamba-c49699d15b96c3479526fdc4fb1996dc9e5c17b9.tar.gz
samba-c49699d15b96c3479526fdc4fb1996dc9e5c17b9.tar.bz2
samba-c49699d15b96c3479526fdc4fb1996dc9e5c17b9.zip
r25107: Fix const warning caused by the way I reformatted this
(This used to be commit 6ce01bf41339b4c48aa458bb0667664727d3dac3)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/idmap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/nsswitch/idmap.c b/source3/nsswitch/idmap.c
index 009d7a610b..2c7acc185c 100644
--- a/source3/nsswitch/idmap.c
+++ b/source3/nsswitch/idmap.c
@@ -431,9 +431,10 @@ NTSTATUS idmap_init(void)
if (compat) {
parm_backend = talloc_strdup(idmap_ctx, compat_backend);
} else {
- char *backend = lp_parm_const_string(-1, config_option,
- "backend", "tdb");
- parm_backend = talloc_strdup(idmap_ctx, backend);
+ parm_backend = talloc_strdup(idmap_ctx,
+ lp_parm_const_string(
+ -1, config_option,
+ "backend", "tdb"));
}
IDMAP_CHECK_ALLOC(parm_backend);