From: Hallvard Furuseth Date: Tue, 29 Apr 2003 16:34:37 +0000 (+0000) Subject: Make string parameter to ldap_charray_add() and ldap_charray_inlist() const. X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~220 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6d59c23c5524ce6502ac2480172d43d38d639a8e;p=openldap Make string parameter to ldap_charray_add() and ldap_charray_inlist() const. --- diff --git a/include/ldap_pvt.h b/include/ldap_pvt.h index 88e1ee0edf..bf12eea29a 100644 --- a/include/ldap_pvt.h +++ b/include/ldap_pvt.h @@ -82,7 +82,7 @@ ldap_pvt_get_hname LDAP_P(( LDAP_F( int ) ldap_charray_add LDAP_P(( char ***a, - char *s )); + const char *s )); LDAP_F( int ) ldap_charray_merge LDAP_P(( @@ -95,7 +95,7 @@ ldap_charray_free LDAP_P(( char **a )); LDAP_F( int ) ldap_charray_inlist LDAP_P(( char **a, - char *s )); + const char *s )); LDAP_F( char ** ) ldap_charray_dup LDAP_P(( char **a )); diff --git a/libraries/libldap/charray.c b/libraries/libldap/charray.c index ad5c4c8b3b..b851f002d6 100644 --- a/libraries/libldap/charray.c +++ b/libraries/libldap/charray.c @@ -17,7 +17,7 @@ int ldap_charray_add( char ***a, - char *s + const char *s ) { int n; @@ -120,7 +120,7 @@ ldap_charray_free( char **a ) int ldap_charray_inlist( char **a, - char *s + const char *s ) { int i;