X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=libraries%2Flibldap%2Fcache.c;h=46b2078d51817e57b32679e3ce2153ad3f470a48;hb=dc07e765f263ef459dcd2afd1ece01cfc85a0edd;hp=936488a3a9df8e56f46b40491af5749757192bf4;hpb=29a7d6229a0c25707d78d3dac2334b2178df4217;p=openldap diff --git a/libraries/libldap/cache.c b/libraries/libldap/cache.c index 936488a3a9..46b2078d51 100644 --- a/libraries/libldap/cache.c +++ b/libraries/libldap/cache.c @@ -25,10 +25,10 @@ static int cache_hash LDAP_P(( BerElement *ber )); static LDAPMessage *msg_dup LDAP_P(( LDAPMessage *msg )); static int request_cmp LDAP_P(( BerElement *req1, BerElement *req2 )); -static int chain_contains_dn LDAP_P(( LDAPMessage *msg, char *dn )); +static int chain_contains_dn LDAP_P(( LDAPMessage *msg, LDAP_CONST char *dn )); static long msg_size LDAP_P(( LDAPMessage *msg )); static void check_cache_memused LDAP_P(( LDAPCache *lc )); -static void uncache_entry_or_req LDAP_P(( LDAP *ld, char *dn, int msgid )); +static void uncache_entry_or_req LDAP_P(( LDAP *ld, LDAP_CONST char *dn, int msgid )); #endif @@ -138,7 +138,7 @@ ldap_uncache_request( LDAP *ld, int msgid ) void -ldap_uncache_entry( LDAP *ld, char *dn ) +ldap_uncache_entry( LDAP *ld, LDAP_CONST char *dn ) { #ifndef LDAP_NOCACHE Debug( LDAP_DEBUG_TRACE, "ldap_uncache_entry %s ld_cache %lx\n", @@ -153,7 +153,7 @@ ldap_uncache_entry( LDAP *ld, char *dn ) static void uncache_entry_or_req( LDAP *ld, - char *dn, /* if non-NULL, uncache entry */ + const char *dn, /* if non-NULL, uncache entry */ int msgid ) /* request to uncache (if dn == NULL) */ { int i; @@ -540,7 +540,7 @@ request_cmp( BerElement *req1, BerElement *req2 ) static int -chain_contains_dn( LDAPMessage *msg, char *dn ) +chain_contains_dn( LDAPMessage *msg, const char *dn ) { LDAPMessage *m; BerElement ber;