param: Rename variable used for lp_guest_only bGuest_only
authorAndrew Bartlett <abartlet@samba.org>
Tue, 24 Dec 2013 03:03:29 +0000 (16:03 +1300)
committerJeremy Allison <jra@samba.org>
Sat, 25 Jan 2014 00:18:46 +0000 (16:18 -0800)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/param/param_functions.c
lib/param/param_table.c
source3/param/loadparm.c

index 14ef83b56ab01c4a51e145bab480d303709d2706..6fb9f4da5a659cff76835f5bb5b641195daeacae 100644 (file)
@@ -92,7 +92,7 @@ FN_LOCAL_BOOL(hideunreadable, hideunreadable)
 FN_LOCAL_BOOL(hideunwriteable_files, hideunwriteable_files)
 FN_LOCAL_BOOL(access_based_share_enum, access_based_share_enum)
 FN_LOCAL_BOOL(guest_ok, guest_ok)
-FN_LOCAL_BOOL(guest_only, bGuest_only)
+FN_LOCAL_BOOL(guest_only, guest_only)
 FN_LOCAL_BOOL(administrative_share, bAdministrative_share)
 FN_LOCAL_BOOL(print_notify_backchannel, bPrintNotifyBackchannel)
 FN_LOCAL_BOOL(store_dos_attributes, bStoreDosAttributes)
index be82d35e527263df0c93190c3c50a60f7544e419..fc939e3ad5a097921fabe3823d05b76461d077ae 100644 (file)
@@ -1008,7 +1008,7 @@ static struct parm_struct parm_table[] = {
                .label          = "guest only",
                .type           = P_BOOL,
                .p_class        = P_LOCAL,
-               .offset         = LOCAL_VAR(bGuest_only),
+               .offset         = LOCAL_VAR(guest_only),
                .special        = NULL,
                .enum_list      = NULL,
                .flags          = FLAG_ADVANCED | FLAG_SHARE,
@@ -1017,7 +1017,7 @@ static struct parm_struct parm_table[] = {
                .label          = "only guest",
                .type           = P_BOOL,
                .p_class        = P_LOCAL,
-               .offset         = LOCAL_VAR(bGuest_only),
+               .offset         = LOCAL_VAR(guest_only),
                .special        = NULL,
                .enum_list      = NULL,
                .flags          = FLAG_HIDE,
index da22afa224ae6dd557353e4a73eba2abf80803a4..c1cd4051c613836d009d285fad5856ee0d8c3e40 100644 (file)
@@ -214,7 +214,7 @@ static struct loadparm_service sDefault =
        .access_based_share_enum = false,
        .bAvailable = true,
        .readonly = true,
-       .bGuest_only = false,
+       .guest_only = false,
        .bAdministrative_share = false,
        .guest_ok = false,
        .print_ok = false,
@@ -1743,7 +1743,7 @@ static bool lp_add_ipc(const char *ipc_name, bool guest_ok)
        ServicePtrs[i]->max_connections = 0;
        ServicePtrs[i]->bAvailable = true;
        ServicePtrs[i]->readonly = true;
-       ServicePtrs[i]->bGuest_only = false;
+       ServicePtrs[i]->guest_only = false;
        ServicePtrs[i]->bAdministrative_share = true;
        ServicePtrs[i]->guest_ok = guest_ok;
        ServicePtrs[i]->print_ok = false;