From 6d59c23c5524ce6502ac2480172d43d38d639a8e Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 29 Apr 2003 16:34:37 +0000 Subject: [PATCH] Make string parameter to ldap_charray_add() and ldap_charray_inlist() const. --- include/ldap_pvt.h | 4 ++-- libraries/libldap/charray.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.5