From: Kurt Zeilenga Date: Fri, 20 Aug 1999 22:24:58 +0000 (+0000) Subject: Fix slurpd constification where dependent upon slap.h X-Git-Tag: TWEB_OL_BASE~137 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6677c7ad1d2bced01381077c40ae1fe4457d1f6c;p=openldap Fix slurpd constification where dependent upon slap.h --- diff --git a/servers/slurpd/lock.c b/servers/slurpd/lock.c index 40c61a2517..2a2ea20374 100644 --- a/servers/slurpd/lock.c +++ b/servers/slurpd/lock.c @@ -35,8 +35,8 @@ FILE * lock_fopen( - char *fname, - char *type, + const char *fname, + const char *type, FILE **lfp ) { @@ -90,7 +90,7 @@ lock_fclose( */ int acquire_lock( - char *file, + const char *file, FILE **rfp, FILE **lfp ) @@ -112,7 +112,7 @@ acquire_lock( */ int relinquish_lock( - char *file, + const char *file, FILE *rfp, FILE *lfp ) diff --git a/servers/slurpd/proto-slurp.h b/servers/slurpd/proto-slurp.h index 2d314cdd3a..55a860099f 100644 --- a/servers/slurpd/proto-slurp.h +++ b/servers/slurpd/proto-slurp.h @@ -45,10 +45,10 @@ extern struct globals *init_globals LDAP_P((void)); int do_ldap LDAP_P((Ri *ri, Re *re, char **errmsg)); /* lock.c */ -FILE *lock_fopen LDAP_P((char *fname, char *type, FILE **lfp)); +FILE *lock_fopen LDAP_P((const char *fname, const char *type, FILE **lfp)); int lock_fclose LDAP_P((FILE *fp, FILE *lfp)); -int acquire_lock LDAP_P((char *file, FILE **rfp, FILE **lfp)); -int relinquish_lock LDAP_P((char *file, FILE *rfp, FILE *lfp)); +int acquire_lock LDAP_P((const char *file, FILE **rfp, FILE **lfp)); +int relinquish_lock LDAP_P((const char *file, FILE *rfp, FILE *lfp)); /* reject.c */ void write_reject LDAP_P((Ri *ri, Re *re, int lderr, char *errmsg));