summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-10-14 15:33:20 +1300
committerStefan Metzmacher <metze@samba.org>2013-10-16 09:27:47 +0200
commit785e8d8c326eeb5f76b41584cf7ca86bee9feab4 (patch)
treeb2e061bcfd95b37e64de8dcbced794e397414c6f /lib
parenta4c3553b5ad4c016a4154f1077e78fb83c791a30 (diff)
downloadsamba-785e8d8c326eeb5f76b41584cf7ca86bee9feab4.tar.gz
samba-785e8d8c326eeb5f76b41584cf7ca86bee9feab4.tar.bz2
samba-785e8d8c326eeb5f76b41584cf7ca86bee9feab4.zip
lib/param: lp_magicchar takes a const struct share_params *p so should be FN_LOCAL_PARM_CHAR
This was found when trying to autogenerate prototypes for lp_ functions again. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/param/loadparm.c2
-rw-r--r--lib/param/param_functions.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index fc209a7586..6d91891a1e 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -314,7 +314,7 @@ static struct loadparm_context *global_loadparm_context;
#define FN_LOCAL_PARM_INTEGER(fn_name, val) FN_LOCAL_INTEGER(fn_name, val)
-#define FN_LOCAL_CHAR(fn_name,val) \
+#define FN_LOCAL_PARM_CHAR(fn_name,val) \
_PUBLIC_ char lpcfg_ ## fn_name(struct loadparm_service *service, \
struct loadparm_service *sDefault) { \
return((service != NULL)? service->val : sDefault->val); \
diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c
index 61f00448ca..c4071c9d33 100644
--- a/lib/param/param_functions.c
+++ b/lib/param/param_functions.c
@@ -147,7 +147,7 @@ FN_LOCAL_INTEGER(aio_write_size, iAioWriteSize)
FN_LOCAL_INTEGER(map_readonly, iMap_readonly)
FN_LOCAL_INTEGER(directory_name_cache_size, iDirectoryNameCacheSize)
FN_LOCAL_INTEGER(smb_encrypt, ismb_encrypt)
-FN_LOCAL_CHAR(magicchar, magic_char)
+FN_LOCAL_PARM_CHAR(magicchar, magic_char)
FN_LOCAL_STRING(cups_options, szCupsOptions)
FN_LOCAL_PARM_BOOL(change_notify, bChangeNotify)
FN_LOCAL_PARM_BOOL(kernel_change_notify, bKernelChangeNotify)