From: Pierangelo Masarati Date: Sat, 12 Jun 2004 15:08:59 +0000 (+0000) Subject: silence a few (mostly harmless) warnings X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~279 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8e3fba7e1e082e4e8b76ed37ce91f2bddc86de74;p=openldap silence a few (mostly harmless) warnings --- diff --git a/servers/slapd/overlays/unique.c b/servers/slapd/overlays/unique.c index 866e5e30cb..c3b280d4c3 100644 --- a/servers/slapd/overlays/unique.c +++ b/servers/slapd/overlays/unique.c @@ -62,7 +62,6 @@ static int unique_db_init( { slap_overinst *on = (slap_overinst *)be->bd_info; unique_data *ud = ch_malloc(sizeof(unique_data)); - unique_attrs *up; /* Debug(LDAP_DEBUG_TRACE, "==> unique_init\n", 0, 0, 0); */ @@ -74,6 +73,8 @@ static int unique_db_init( /* default to the base of our configured database */ ber_dupbv(&ud->dn, &be->be_nsuffix[0]); on->on_bi.bi_private = ud; + + return 0; } @@ -257,10 +258,8 @@ static int unique_add( slap_overinst *on = (slap_overinst *) op->o_bd->bd_info; Attribute *a; - AttributeDescription *st; BerVarray b = NULL; - char *fstr, *key, *kp; - const char *why; + char *key, *kp; int i, rc, ks = 16; unique_attrs *up; unique_counter uq = { 0 }; @@ -387,12 +386,9 @@ static int unique_modify( slap_callback cb = { NULL, (slap_response*)count_attr_cb, NULL, NULL }; slap_overinst *on = (slap_overinst *) op->o_bd->bd_info; - Attribute *a; - AttributeDescription *st; BerVarray b = NULL; Modifications *m; - char *fstr, *key, *kp; - const char *why; + char *key, *kp; int i, rc, ks = 16; /* a handful of extra bytes */ unique_attrs *up; unique_counter uq = { 0 }; @@ -520,8 +516,7 @@ static int unique_modrdn( slap_callback cb = { NULL, (slap_response*)count_attr_cb, NULL, NULL }; slap_overinst *on = (slap_overinst *) op->o_bd->bd_info; - char *fstr, *key, *kp; - const char *why; + char *key, *kp; int i, rc, ks = 16; /* a handful of extra bytes */ unique_attrs *up; unique_counter uq = { 0 };