loadparm: rename variable for "read only" from readonly to read_only
authorMichael Adam <obnox@samba.org>
Sun, 2 Feb 2014 13:44:05 +0000 (14:44 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 3 Feb 2014 00:27:10 +0000 (13:27 +1300)
for consistency docs/functions/variables

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/param/loadparm.c
lib/param/param_functions.c
lib/param/param_table.c
source3/param/loadparm.c

index 58712a5248294c020f659cfdfbee438cd88d4363..81d8d1f010b2fdf3fc3f47da768f0cbea5a8ae12 100644 (file)
@@ -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;
index afba56b6d8f8a994db448a61ebf6c197a0b30b42..31b2beec41732e9fbe578213c44dbfb52dfb57a2 100644 (file)
@@ -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)
index d3782544ee720394971b3245b102efc1b25acf25..7ff9b339781cfba7208d969411013bbdac4d1e73 100644 (file)
@@ -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,
index d9690c884189d0b22e62ed5d83173fda0ac99334..019406bc4e4622ccd360a62c0b349a50d2c10e05 100644 (file)
@@ -213,7 +213,7 @@ static struct loadparm_service sDefault =
        .browseable = true,
        .access_based_share_enum = false,
        .bAvailable = true,
-       .readonly = true,
+       .read_only = true,
        .guest_only = false,
        .administrative_share = false,
        .guest_ok = false,
@@ -1790,7 +1790,7 @@ static bool lp_add_ipc(const char *ipc_name, bool guest_ok)
        string_set(&ServicePtrs[i]->fstype, "IPC");
        ServicePtrs[i]->max_connections = 0;
        ServicePtrs[i]->bAvailable = true;
-       ServicePtrs[i]->readonly = true;
+       ServicePtrs[i]->read_only = true;
        ServicePtrs[i]->guest_only = false;
        ServicePtrs[i]->administrative_share = true;
        ServicePtrs[i]->guest_ok = guest_ok;
@@ -1828,7 +1828,7 @@ bool lp_add_printer(const char *pszPrintername, int iDefaultService)
        ServicePtrs[i]->browseable = sDefault.browseable;
 
        /* Printers cannot be read_only. */
-       ServicePtrs[i]->readonly = false;
+       ServicePtrs[i]->read_only = false;
        /* No oplocks on printer services. */
        ServicePtrs[i]->oplocks = false;
        /* Printer services must be printable. */
@@ -4255,7 +4255,7 @@ static int process_usershare_file(const char *dir_name, const char *file_name, i
                added_service = true;
 
                /* Read only is controlled by usershare ACL below. */
-               ServicePtrs[iService]->readonly = false;
+               ServicePtrs[iService]->read_only = false;
        }
 
        /* Write the ACL of the new/modified share. */