summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;