summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-01 11:18:09 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-01 04:19:05 +0200
commita74e7fbc6abb16e85eb6ac14193be0e0f664a6f0 (patch)
treecfd1956b1236c4f70a5b05c1d9b88bdd74150dc7 /source3/param
parentf52b97a1292e4e84fccd4601d341de857cc5e586 (diff)
downloadsamba-a74e7fbc6abb16e85eb6ac14193be0e0f664a6f0.tar.gz
samba-a74e7fbc6abb16e85eb6ac14193be0e0f664a6f0.tar.bz2
samba-a74e7fbc6abb16e85eb6ac14193be0e0f664a6f0.zip
s3-param Make lp_smb_ports() const
It makes no sense to have a % substiution in the 'smb ports' parameter. Andrew Bartlett
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index a8e5f19c40..6ae866399b 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -5564,7 +5564,7 @@ static char *lp_string(const char *s)
#define FN_LOCAL_CHAR(fn_name,val) \
char fn_name(const struct share_params *p) {return(LP_SNUM_OK(p->service)? ServicePtrs[(p->service)]->val : sDefault.val);}
-FN_GLOBAL_STRING(lp_smb_ports, &Globals.smb_ports)
+FN_GLOBAL_CONST_STRING(lp_smb_ports, &Globals.smb_ports)
FN_GLOBAL_CONST_STRING(lp_dos_charset, &Globals.dos_charset)
FN_GLOBAL_CONST_STRING(lp_unix_charset, &Globals.unix_charset)
FN_GLOBAL_CONST_STRING(lp_display_charset, &Globals.display_charset)