From: Kurt Zeilenga Date: Mon, 7 Jan 2002 20:28:02 +0000 (+0000) Subject: Don't use 'void *' unnecessarily. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~241 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e9342bc7a907c191f6ff24fddeefdd60ed0e842a;p=openldap Don't use 'void *' unnecessarily. --- diff --git a/servers/slapd/ad.c b/servers/slapd/ad.c index 6c199e5cb5..d865d5301d 100644 --- a/servers/slapd/ad.c +++ b/servers/slapd/ad.c @@ -35,13 +35,13 @@ static int ad_keystring( return 0; } -void ad_destroy( void *in ) +void ad_destroy( AttributeDescription *ad ) { - AttributeDescription *ad = in, *n; + AttributeDescription *n; - for (;ad;ad = n) { + for (; ad != NULL; ad = n) { n = ad->ad_next; - ldap_memfree(ad); + ldap_memfree( ad ); } } diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index 35d31fc2d0..bd53592575 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -729,7 +729,7 @@ LDAP_SLAPD_F (int) syn_schema_info( Entry *e ); LDAP_SLAPD_F (void) oc_destroy LDAP_P(( void )); LDAP_SLAPD_F (void) oidm_destroy LDAP_P(( void )); LDAP_SLAPD_F (void) at_destroy LDAP_P(( void )); -LDAP_SLAPD_F (void) ad_destroy LDAP_P(( void * )); +LDAP_SLAPD_F (void) ad_destroy LDAP_P(( AttributeDescription * )); LDAP_SLAPD_F (void) mr_destroy LDAP_P(( void )); LDAP_SLAPD_F (void) syn_destroy LDAP_P(( void )); LDAP_SLAPD_F (void) schema_destroy LDAP_P(( void ));