From: Hallvard Furuseth Date: Wed, 6 Jul 2005 10:50:03 +0000 (+0000) Subject: Constify ldif_open() args X-Git-Tag: OPENLDAP_AC_BP~441 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7cc496fd25ea7ed5e2ec6e061bee43cc23da574e;p=openldap Constify ldif_open() args --- diff --git a/include/ldif.h b/include/ldif.h index 0b2eaed130..a2aade11c5 100644 --- a/include/ldif.h +++ b/include/ldif.h @@ -90,7 +90,7 @@ typedef struct LDIFFP { } LDIFFP; LDAP_LDIF_F( LDIFFP * ) -ldif_open LDAP_P(( char *file, char *mode )); +ldif_open LDAP_P(( LDAP_CONST char *file, LDAP_CONST char *mode )); LDAP_LDIF_F( void ) ldif_close LDAP_P(( LDIFFP * )); diff --git a/libraries/liblutil/ldif.c b/libraries/liblutil/ldif.c index 01ac9dbf5b..f29d4c3084 100644 --- a/libraries/liblutil/ldif.c +++ b/libraries/liblutil/ldif.c @@ -747,8 +747,8 @@ int ldif_is_not_printable( LDIFFP * ldif_open( - char *file, - char *mode + LDAP_CONST char *file, + LDAP_CONST char *mode ) { FILE *fp = fopen( file, mode );