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>
This commit is contained in:
Lukas Slebodnik 2015-11-12 19:49:16 +00:00 committed by Martin Basti
parent 2735db0d0e
commit 08d65f54e7

View File

@ -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);