From 4aae2b3702bbfb8082fd225652337e18c3c4abf8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 13 Sep 2000 07:08:09 +0000 Subject: don't show equivalent enum options in swat (This used to be commit 52074960971995580a03647ac5c638043eb8f5e1) --- source3/web/swat.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'source3/web/swat.c') diff --git a/source3/web/swat.c b/source3/web/swat.c index 54192b70da..29ff28a75a 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -57,7 +57,7 @@ static int iNumNonAutoPrintServices = 0; ****************************************************************************/ static int enum_index(int value, struct enum_list *enumlist) { -int i; + int i; for (i=0;enumlist[i].name;i++) if (value == enumlist[i].value) break; return(i); @@ -65,8 +65,8 @@ int i; static char *fix_backslash(char *str) { -static char newstring[1024]; -char *p = newstring; + static char newstring[1024]; + char *p = newstring; while (*str) { if (*str == '\\') {*p++ = '\\';*p++ = '\\';} @@ -226,8 +226,11 @@ static void show_parameter(int snum, struct parm_struct *parm) case P_ENUM: printf(""); printf("", make_parm_name(parm->label),enum_index((int)(parm->def.ivalue),parm->enum_list)); -- cgit