From 9ba9fcd6dd56e48847bd91bb1fbb34089a684890 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 19 Nov 2001 03:52:09 +0000 Subject: dyn_LOCKDIR should be const because it's never modified directly -- it's just copied in to the parameter table and optionally overridden there. (This used to be commit 988fe772a39e08dec738b045021cd6e06b4e59c8) --- source3/dynconfig.c | 2 +- source3/include/dynconfig.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/dynconfig.c b/source3/dynconfig.c index a12eee1506..34603fee86 100644 --- a/source3/dynconfig.c +++ b/source3/dynconfig.c @@ -61,4 +61,4 @@ pstring dyn_LIBDIR; * * Not writable, but used to set a default in the parameter table. **/ -pstring dyn_LOCKDIR; +const pstring dyn_LOCKDIR; diff --git a/source3/include/dynconfig.h b/source3/include/dynconfig.h index 3aba194ab2..b6a186f91b 100644 --- a/source3/include/dynconfig.h +++ b/source3/include/dynconfig.h @@ -29,4 +29,5 @@ extern char const *dyn_SBINDIR, extern pstring dyn_CONFIGFILE; extern pstring dyn_LOGFILEBASE, dyn_LMHOSTSFILE; -extern pstring dyn_LIBDIR, dyn_LOCKDIR; +extern pstring dyn_LIBDIR; +extern const pstring dyn_LOCKDIR; -- cgit