loadparm: rename variable for "hosts allow" from hostsallow to hosts_allow
authorMichael Adam <obnox@samba.org>
Sun, 2 Feb 2014 13:15:57 +0000 (14:15 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 3 Feb 2014 00:26:46 +0000 (13:26 +1300)
for consistency docs/function/variable

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/param_functions.c
lib/param/param_table.c
source3/param/loadparm.c

index cafa6d5611b43efa2ed8a9525408672a76e2fc4d..fef85507e5097947797c67d63b3c682373667bc5 100644 (file)
@@ -28,7 +28,7 @@
 */
 
 FN_LOCAL_STRING(path, path)
-FN_LOCAL_LIST(hosts_allow, hostsallow)
+FN_LOCAL_LIST(hosts_allow, hosts_allow)
 FN_LOCAL_LIST(hostsdeny, hostsdeny)
 FN_LOCAL_STRING(fstype, fstype)
 FN_LOCAL_LIST(ntvfs_handler, ntvfs_handler)
index 2328e7583aad85c685ffe4718b57c5dbf160bd1a..b6b11f92cfa1feac5033e0274e049b8f2469e204 100644 (file)
@@ -1063,7 +1063,7 @@ static struct parm_struct parm_table[] = {
                .label          = "hosts allow",
                .type           = P_LIST,
                .p_class        = P_LOCAL,
-               .offset         = LOCAL_VAR(hostsallow),
+               .offset         = LOCAL_VAR(hosts_allow),
                .special        = NULL,
                .enum_list      = NULL,
                .flags          = FLAG_GLOBAL | FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
@@ -1072,7 +1072,7 @@ static struct parm_struct parm_table[] = {
                .label          = "allow hosts",
                .type           = P_LIST,
                .p_class        = P_LOCAL,
-               .offset         = LOCAL_VAR(hostsallow),
+               .offset         = LOCAL_VAR(hosts_allow),
                .special        = NULL,
                .enum_list      = NULL,
                .flags          = FLAG_HIDE,
index c9c502d21c28941f559b3e526cff53a95962949e..0a8987f2c6aabf2536ae4c49d23739aeb19e4e8a 100644 (file)
@@ -168,7 +168,7 @@ static struct loadparm_service sDefault =
        ._printername = NULL,
        .printjob_username = NULL,
        .dontdescend = NULL,
-       .hostsallow = NULL,
+       .hosts_allow = NULL,
        .hostsdeny = NULL,
        .magicscript = NULL,
        .magicoutput = NULL,