diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-10-14 15:33:20 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-10-16 09:27:47 +0200 |
commit | 785e8d8c326eeb5f76b41584cf7ca86bee9feab4 (patch) | |
tree | b2e061bcfd95b37e64de8dcbced794e397414c6f /source3/param | |
parent | a4c3553b5ad4c016a4154f1077e78fb83c791a30 (diff) | |
download | samba-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 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 62cba4df57..d3fb839897 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1113,7 +1113,7 @@ char *lp_ ## fn_name(TALLOC_CTX *ctx,int i) {return(lp_string((ctx), (LP_SNUM_OK bool lp_ ## fn_name(const struct share_params *p) {return(bool)(LP_SNUM_OK(p->service)? ServicePtrs[(p->service)]->val : sDefault.val);} #define FN_LOCAL_PARM_INTEGER(fn_name,val) \ int lp_ ## fn_name(const struct share_params *p) {return(LP_SNUM_OK(p->service)? ServicePtrs[(p->service)]->val : sDefault.val);} -#define FN_LOCAL_CHAR(fn_name,val) \ +#define FN_LOCAL_PARM_CHAR(fn_name,val) \ char lp_ ## fn_name(const struct share_params *p) {return(LP_SNUM_OK(p->service)? ServicePtrs[(p->service)]->val : sDefault.val);} |