From e9342bc7a907c191f6ff24fddeefdd60ed0e842a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 7 Jan 2002 20:28:02 +0000 Subject: [PATCH] Don't use 'void *' unnecessarily. --- servers/slapd/ad.c | 8 ++++---- servers/slapd/proto-slap.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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 )); -- 2.39.5