diff options
| author | Andrew Bartlett <abartlet@samba.org> | 2013-12-24 16:03:19 +1300 |
|---|---|---|
| committer | Jeremy Allison <jra@samba.org> | 2014-01-24 16:18:43 -0800 |
| commit | 79919eacbd0248563fde429e2c9adecccba8a1eb (patch) | |
| tree | 1c13ea47b530902f791119cbd7e76c06da3122d9 | |
| parent | 4f0c831e2b4166abf891581b0aeb479e931b9b98 (diff) | |
| download | samba-79919eacbd0248563fde429e2c9adecccba8a1eb.tar.gz samba-79919eacbd0248563fde429e2c9adecccba8a1eb.tar.xz samba-79919eacbd0248563fde429e2c9adecccba8a1eb.zip | |
param: Rename variable used for lp_max_connections iMaxConnections
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
| -rw-r--r-- | lib/param/param_functions.c | 2 | ||||
| -rw-r--r-- | lib/param/param_table.c | 2 | ||||
| -rw-r--r-- | source3/param/loadparm.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c index 1839e3cabb..d70268bb1a 100644 --- a/lib/param/param_functions.c +++ b/lib/param/param_functions.c @@ -41,7 +41,7 @@ FN_LOCAL_BOOL(map_archive, map_archive) FN_LOCAL_BOOL(oplocks, oplocks) FN_LOCAL_BOOL(strict_sync, strict_sync) FN_LOCAL_BOOL(map_system, map_system) -FN_LOCAL_INTEGER(max_connections, iMaxConnections) +FN_LOCAL_INTEGER(max_connections, max_connections) FN_LOCAL_INTEGER(csc_policy, iCSCPolicy) FN_LOCAL_INTEGER(create_mask, iCreate_mask) FN_LOCAL_INTEGER(force_create_mode, iCreate_force_mode) diff --git a/lib/param/param_table.c b/lib/param/param_table.c index 7c39063e61..7f6798438c 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -1812,7 +1812,7 @@ static struct parm_struct parm_table[] = { .label = "max connections", .type = P_INTEGER, .p_class = P_LOCAL, - .offset = LOCAL_VAR(iMaxConnections), + .offset = LOCAL_VAR(max_connections), .special = NULL, .enum_list = NULL, .flags = FLAG_ADVANCED | FLAG_SHARE, diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index a98b107806..dd95e941fb 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -194,7 +194,7 @@ static struct loadparm_service sDefault = .iCreate_force_mode = 0, .iDir_mask = 0755, .iDir_force_mode = 0, - .iMaxConnections = 0, + .max_connections = 0, .iDefaultCase = CASE_LOWER, .iPrinting = DEFAULT_PRINTING, .iOplockContentionLimit = 2, @@ -1740,7 +1740,7 @@ static bool lp_add_ipc(const char *ipc_name, bool guest_ok) string_set(&ServicePtrs[i]->szUsername, ""); string_set(&ServicePtrs[i]->comment, comment); string_set(&ServicePtrs[i]->fstype, "IPC"); - ServicePtrs[i]->iMaxConnections = 0; + ServicePtrs[i]->max_connections = 0; ServicePtrs[i]->bAvailable = true; ServicePtrs[i]->readonly = true; ServicePtrs[i]->bGuest_only = false; |
