From 6677c7ad1d2bced01381077c40ae1fe4457d1f6c Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 20 Aug 1999 22:24:58 +0000 Subject: [PATCH] Fix slurpd constification where dependent upon slap.h --- servers/slurpd/lock.c | 8 ++++---- servers/slurpd/proto-slurp.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) 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)); -- 2.39.5