summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-21 16:50:43 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-01-21 11:32:06 +0100
commit39ee332f35d42b0c9f53961128a486c01576ea66 (patch)
tree2e9aed95d3858bdb03a9a4311247fdd2faadc15f
parentc55db47f1cf61ee343a7bd534904c32bf265325b (diff)
downloadsamba-39ee332f35d42b0c9f53961128a486c01576ea66.tar.gz
samba-39ee332f35d42b0c9f53961128a486c01576ea66.tar.bz2
samba-39ee332f35d42b0c9f53961128a486c01576ea66.zip
param: handle P_BYTES in more places
-rw-r--r--lib/param/loadparm.c1
-rw-r--r--source3/web/swat.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index 03ee8f34ac..ef1e7d9e47 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -2099,6 +2099,7 @@ static void copy_service(struct loadparm_service *pserviceDest,
break;
case P_INTEGER:
+ case P_BYTES:
case P_OCTAL:
case P_ENUM:
*(int *)dest_ptr = *(int *)src_ptr;
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 3d6aaf4ca7..34974b400f 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -409,6 +409,7 @@ static void show_parameter(int snum, struct parm_struct *parm)
break;
case P_INTEGER:
+ case P_BYTES:
printf("<input type=text size=8 name=\"parm_%s\" value=\"%d\">", make_parm_name(parm->label), *(int *)ptr);
printf("<input type=button value=\"%s\" onClick=\"swatform.parm_%s.value=\'%d\'\">",
_("Set Default"), make_parm_name(parm->label),(int)(parm->def.ivalue));
@@ -499,6 +500,7 @@ static void show_parameters(int snum, int allparameters, unsigned int parm_filte
break;
case P_INTEGER:
+ case P_BYTES:
case P_OCTAL:
if (*(int *)ptr == (int)(parm->def.ivalue)) continue;
break;