summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-02-02 14:15:57 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-02-03 13:26:46 +1300
commitc48c4daf4a28e91db1047a1e3e9e2ab1d259735f (patch)
tree305d9dbfd5307d1c60bba754aabcc427294b0b95
parent4670c43b3228d39422ce01d0e65544de4e723d25 (diff)
downloadsamba-c48c4daf4a28e91db1047a1e3e9e2ab1d259735f.tar.gz
samba-c48c4daf4a28e91db1047a1e3e9e2ab1d259735f.tar.xz
samba-c48c4daf4a28e91db1047a1e3e9e2ab1d259735f.zip
loadparm: rename variable for "hosts allow" from hostsallow to hosts_allow
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>
-rw-r--r--lib/param/param_functions.c2
-rw-r--r--lib/param/param_table.c4
-rw-r--r--source3/param/loadparm.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c
index cafa6d5611..fef85507e5 100644
--- a/lib/param/param_functions.c
+++ b/lib/param/param_functions.c
@@ -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)
diff --git a/lib/param/param_table.c b/lib/param/param_table.c
index 2328e7583a..b6b11f92cf 100644
--- a/lib/param/param_table.c
+++ b/lib/param/param_table.c
@@ -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,
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index c9c502d21c..0a8987f2c6 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -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,