summaryrefslogtreecommitdiff
path: root/source3/web
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 /source3/web
parentc55db47f1cf61ee343a7bd534904c32bf265325b (diff)
downloadsamba-39ee332f35d42b0c9f53961128a486c01576ea66.tar.gz
samba-39ee332f35d42b0c9f53961128a486c01576ea66.tar.bz2
samba-39ee332f35d42b0c9f53961128a486c01576ea66.zip
param: handle P_BYTES in more places
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/swat.c2
1 files changed, 2 insertions, 0 deletions
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;