diff options
author | Martin Nagy <mnagy@redhat.com> | 2008-06-26 12:52:25 +0200 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2008-06-30 14:17:10 -0400 |
commit | 6cce2f45e8b48422b2c3534b7a73c10ba95ad2fe (patch) | |
tree | dfb668e4020adb3dfcbf0701dfb07182cd1191ca /ipa-server/ipa-slapi-plugins/dna | |
parent | f5d9dd647f242841bf9474a3a669b11562fe02f9 (diff) | |
download | freeipa-6cce2f45e8b48422b2c3534b7a73c10ba95ad2fe.tar.gz freeipa-6cce2f45e8b48422b2c3534b7a73c10ba95ad2fe.tar.xz freeipa-6cce2f45e8b48422b2c3534b7a73c10ba95ad2fe.zip |
Fix some small issues that caused compiler warnings, like uninitialized or unused variables or missing krb5 prototypes.
Diffstat (limited to 'ipa-server/ipa-slapi-plugins/dna')
-rw-r--r-- | ipa-server/ipa-slapi-plugins/dna/dna.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ipa-server/ipa-slapi-plugins/dna/dna.c b/ipa-server/ipa-slapi-plugins/dna/dna.c index 6f0780b0..a092d1bc 100644 --- a/ipa-server/ipa-slapi-plugins/dna/dna.c +++ b/ipa-server/ipa-slapi-plugins/dna/dna.c @@ -371,7 +371,7 @@ static int dna_start(Slapi_PBlock * pb) /** * Load the config for our plug-in */ - dna_global_config = (struct configEntry *) + dna_global_config = (PRCList *) slapi_ch_calloc(1, sizeof(struct configEntry)); PR_INIT_CLIST(dna_global_config); @@ -973,7 +973,6 @@ static int dna_get_next_value(struct configEntry *config_entry, PRUint64 setval = 0; PRUint64 newval = 0; PRUint64 maxval = -1; - int result; /* do update */ ret = slapi_search_internal_get_entry(dn, attrlist, &e, @@ -1342,7 +1341,7 @@ static int dna_pre_op(Slapi_PBlock * pb, int modtype) slapi_log_error(SLAPI_LOG_PLUGIN, DNA_PLUGIN_SUBSYSTEM, "dna_pre_op: operation failure [%d]\n", ret); slapi_send_ldap_result(pb, ret, NULL, errstr, 0, NULL); - slapi_ch_free(&errstr); + slapi_ch_free((void **)&errstr); ret = DNA_FAILURE; } |