lib/param: Mark lpcfg_cachedir and lpcfg_statedir as const char *
authorAndrew Bartlett <abartlet@samba.org>
Fri, 27 Jul 2012 01:11:58 +0000 (11:11 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 27 Jul 2012 03:26:45 +0000 (05:26 +0200)
This matters as we sync up the declarations with the source3/param code.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jul 27 05:26:45 CEST 2012 on sn-devel-104

lib/param/loadparm.c

index 1fce8b9dcfcf560dd5626c3a93884e1630d395f7..2dcf06c9108eed623f595224250688125513212b 100644 (file)
@@ -327,8 +327,8 @@ static struct loadparm_context *global_loadparm_context;
 /* These functions remain only in lib/param for now */
 FN_GLOBAL_BOOL(readraw, bReadRaw)
 FN_GLOBAL_BOOL(writeraw, bWriteRaw)
-FN_GLOBAL_STRING(cachedir, szCacheDir)
-FN_GLOBAL_STRING(statedir, szStateDir)
+FN_GLOBAL_CONST_STRING(cachedir, szCacheDir)
+FN_GLOBAL_CONST_STRING(statedir, szStateDir)
 
 /* local prototypes */
 static int map_parameter(const char *pszParmName);