summaryrefslogtreecommitdiffstats
path: root/lib/param
diff options
context:
space:
mode:
Diffstat (limited to 'lib/param')
-rw-r--r--lib/param/loadparm.c4
-rw-r--r--lib/param/param_functions.c2
-rw-r--r--lib/param/param_table.c8
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index 58712a5248..81d8d1f010 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -787,7 +787,7 @@ bool lpcfg_add_printer(struct loadparm_context *lp_ctx,
lpcfg_string_set(service, &service->comment, comment);
service->browseable = default_service->browseable;
/* Printers cannot be read_only. */
- service->readonly = false;
+ service->read_only = false;
/* Printer services must be printable. */
service->print_ok = true;
@@ -2008,7 +2008,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
lp_ctx->sDefault->iMaxPrintJobs = 1000;
lp_ctx->sDefault->bAvailable = true;
lp_ctx->sDefault->browseable = true;
- lp_ctx->sDefault->readonly = true;
+ lp_ctx->sDefault->read_only = true;
lp_ctx->sDefault->map_archive = true;
lp_ctx->sDefault->strict_locking = true;
lp_ctx->sDefault->oplocks = true;
diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c
index afba56b6d8..31b2beec41 100644
--- a/lib/param/param_functions.c
+++ b/lib/param/param_functions.c
@@ -34,7 +34,7 @@ FN_LOCAL_STRING(fstype, fstype)
FN_LOCAL_LIST(ntvfs_handler, ntvfs_handler)
FN_LOCAL_BOOL(msdfs_root, msdfs_root)
FN_LOCAL_BOOL(browseable, browseable)
-FN_LOCAL_BOOL(read_only, readonly)
+FN_LOCAL_BOOL(read_only, read_only)
FN_LOCAL_BOOL(print_ok, print_ok)
FN_LOCAL_BOOL(map_hidden, map_hidden)
FN_LOCAL_BOOL(map_archive, map_archive)
diff --git a/lib/param/param_table.c b/lib/param/param_table.c
index d3782544ee..7ff9b33978 100644
--- a/lib/param/param_table.c
+++ b/lib/param/param_table.c
@@ -845,7 +845,7 @@ static struct parm_struct parm_table[] = {
.label = "read only",
.type = P_BOOL,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(readonly),
+ .offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE,
@@ -854,7 +854,7 @@ static struct parm_struct parm_table[] = {
.label = "write ok",
.type = P_BOOLREV,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(readonly),
+ .offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_HIDE,
@@ -863,7 +863,7 @@ static struct parm_struct parm_table[] = {
.label = "writeable",
.type = P_BOOLREV,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(readonly),
+ .offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_HIDE,
@@ -872,7 +872,7 @@ static struct parm_struct parm_table[] = {
.label = "writable",
.type = P_BOOLREV,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(readonly),
+ .offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_HIDE,