summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-03-11 10:23:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:16 -0500
commita156d128f2bd5ea8ff9c1b5a4927ad3b82956fa8 (patch)
tree8aa3ad58d8d162008121e5eb7769d092b9d6e1dd /source3/web
parent1e34c2959628b3134943d8b361230b5bc2a37d5e (diff)
downloadsamba-a156d128f2bd5ea8ff9c1b5a4927ad3b82956fa8.tar.gz
samba-a156d128f2bd5ea8ff9c1b5a4927ad3b82956fa8.tar.bz2
samba-a156d128f2bd5ea8ff9c1b5a4927ad3b82956fa8.zip
r14204: Remove the basically unused P_GSTRING and P_UGSTRING
parameter types. (This used to be commit 23328fe6fc5e3b4ed3dc35e1475d661a8593eb1a)
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/swat.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index cbf5ba8989..3800a1db7f 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -275,16 +275,6 @@ static void show_parameter(int snum, struct parm_struct *parm)
_("Set Default"), make_parm_name(parm->label),fix_backslash((char *)(parm->def.svalue)));
break;
- case P_GSTRING:
- case P_UGSTRING:
- push_utf8_allocate(&utf8_s1, (char *)ptr);
- printf("<input type=text size=40 name=\"parm_%s\" value=\"%s\">",
- make_parm_name(parm->label), fix_quotes(utf8_s1));
- SAFE_FREE(utf8_s1);
- printf("<input type=button value=\"%s\" onClick=\"swatform.parm_%s.value=\'%s\'\">",
- _("Set Default"), make_parm_name(parm->label),fix_backslash((char *)(parm->def.svalue)));
- break;
-
case P_BOOL:
printf("<select name=\"parm_%s\">",make_parm_name(parm->label));
printf("<option %s>Yes", (*(BOOL *)ptr)?"selected":"");
@@ -378,11 +368,6 @@ static void show_parameters(int snum, int allparameters, unsigned int parm_filte
if (!strcmp(*(char **)ptr,(char *)(parm->def.svalue))) continue;
break;
- case P_GSTRING:
- case P_UGSTRING:
- if (!strcmp((char *)ptr,(char *)(parm->def.svalue))) continue;
- break;
-
case P_BOOL:
case P_BOOLREV:
if (*(BOOL *)ptr == (BOOL)(parm->def.bvalue)) continue;