From 7cc496fd25ea7ed5e2ec6e061bee43cc23da574e Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 6 Jul 2005 10:50:03 +0000 Subject: [PATCH] Constify ldif_open() args --- include/ldif.h | 2 +- libraries/liblutil/ldif.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ); -- 2.39.5