summaryrefslogtreecommitdiffstats
path: root/daemons
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-11-12 19:49:16 +0000
committerMartin Basti <mbasti@redhat.com>2015-11-13 18:37:23 +0100
commit08d65f54e75948b929fa1c1e66eefb6bfd8e9334 (patch)
tree8459305d9541b77f8968bc4a31d074c241df348f /daemons
parent2735db0d0e4e7b19af594107e31e667bdcb32200 (diff)
downloadfreeipa-08d65f54e75948b929fa1c1e66eefb6bfd8e9334.tar.gz
freeipa-08d65f54e75948b929fa1c1e66eefb6bfd8e9334.tar.xz
freeipa-08d65f54e75948b929fa1c1e66eefb6bfd8e9334.zip
topology: Fix warning Wshadow
topology_pre.c: In function ‘ipa_topo_pre_add’: topology_pre.c:509:15: warning: declaration of ‘errtxt’ shadows a previous local [-Wshadow] char *errtxt; ^ topology_pre.c:494:11: note: shadowed declaration is here char *errtxt = NULL; ^ Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'daemons')
-rw-r--r--daemons/ipa-slapi-plugins/topology/topology_pre.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/daemons/ipa-slapi-plugins/topology/topology_pre.c b/daemons/ipa-slapi-plugins/topology/topology_pre.c
index c6c22be24..1788c6d3e 100644
--- a/daemons/ipa-slapi-plugins/topology/topology_pre.c
+++ b/daemons/ipa-slapi-plugins/topology/topology_pre.c
@@ -506,7 +506,6 @@ int ipa_topo_pre_add(Slapi_PBlock *pb)
if (ipa_topo_is_entry_managed(pb)) {
int rc = LDAP_UNWILLING_TO_PERFORM;
- char *errtxt;
errtxt = slapi_ch_smprintf("Entry is managed by topology plugin."
" Adding of entry not allowed.\n");
slapi_pblock_set(pb, SLAPI_PB_RESULT_TEXT, errtxt);