summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-08-14 05:56:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:59 -0500
commit64082214337e2ab50f0a69ca7f9bcf56762129cc (patch)
treebf861a24299291ad3607df0b40b749ae67545960 /source4/param
parent350673b2d0106191e6bdb65772f70cae5abafacb (diff)
downloadsamba-64082214337e2ab50f0a69ca7f9bcf56762129cc.tar.gz
samba-64082214337e2ab50f0a69ca7f9bcf56762129cc.tar.bz2
samba-64082214337e2ab50f0a69ca7f9bcf56762129cc.zip
r1819: changed "smb ports" to be a LIST parameter type in loadparm (its a classic case for a list)
(This used to be commit e53d32c65ab0751b3e01f4f699f5d0e1892369ae)
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/loadparm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index a0582b6f46..fa6a658e20 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -89,7 +89,7 @@ struct param_opt {
*/
typedef struct
{
- char *smb_ports;
+ char **smb_ports;
char *dos_charset;
char *unix_charset;
char *display_charset;
@@ -633,7 +633,7 @@ static struct parm_struct parm_table[] = {
{"Protocol Options", P_SEP, P_SEPARATOR},
- {"smb ports", P_STRING, P_GLOBAL, &Globals.smb_ports, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
+ {"smb ports", P_LIST, P_GLOBAL, &Globals.smb_ports, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
{"large readwrite", P_BOOL, P_GLOBAL, &Globals.bLargeReadwrite, NULL, NULL, FLAG_DEVELOPER},
{"max protocol", P_ENUM, P_GLOBAL, &Globals.maxprotocol, NULL, enum_protocol, FLAG_DEVELOPER},
{"min protocol", P_ENUM, P_GLOBAL, &Globals.minprotocol, NULL, enum_protocol, FLAG_DEVELOPER},
@@ -1112,7 +1112,7 @@ static void init_globals(void)
Globals.client_signing = SMB_SIGNING_SUPPORTED;
Globals.server_signing = SMB_SIGNING_SUPPORTED;
- string_set(&Globals.smb_ports, SMB_PORTS);
+ Globals.smb_ports = str_list_make(SMB_PORTS, NULL);
}
static TALLOC_CTX *lp_talloc;
@@ -1207,7 +1207,7 @@ static const char *lp_string(const char *s)
#define FN_LOCAL_INTEGER(fn_name,val) \
int fn_name(int i) {return(LP_SNUM_OK(i)? ServicePtrs[(i)]->val : sDefault.val);}
-FN_GLOBAL_STRING(lp_smb_ports, &Globals.smb_ports)
+FN_GLOBAL_LIST(lp_smb_ports, &Globals.smb_ports)
FN_GLOBAL_STRING(lp_dos_charset, &Globals.dos_charset)
FN_GLOBAL_STRING(lp_unix_charset, &Globals.unix_charset)
FN_GLOBAL_STRING(lp_display_charset, &Globals.display_charset)