diff options
author | Simo Sorce <idra@samba.org> | 2002-08-03 01:11:16 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2002-08-03 01:11:16 +0000 |
commit | 595145337ecd53441c1129d037be73c0f35fcb11 (patch) | |
tree | 30ab413da058e4c888557611a4db38b66a01dd68 /source3/web | |
parent | 60078160dec6b6c8b1b87229fa66d617f340aeca (diff) | |
download | samba-595145337ecd53441c1129d037be73c0f35fcb11.tar.gz samba-595145337ecd53441c1129d037be73c0f35fcb11.tar.bz2 samba-595145337ecd53441c1129d037be73c0f35fcb11.zip |
fix log level, set a default, and also copy the value set in smb.conf into parm_struct.ptr
this one also fixes log level not shown in swat
fix swat help system
(This used to be commit 7532e828966f3baaa418b528a5b7fe450c488401)
Diffstat (limited to 'source3/web')
-rw-r--r-- | source3/web/swat.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c index 7be46790db..80d3232d2b 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -79,15 +79,15 @@ static char *fix_backslash(char *str) return newstring; } -static char *stripspace(char *str) +static char *stripspaceupper(char *str) { -static char newstring[1024]; -char *p = newstring; + static char newstring[1024]; + char *p = newstring; - while (*str) { - if (*str != ' ') *p++ = *str; - ++str; - } + while (*str) { + if (*str != ' ') *p++ = toupper(*str); + ++str; + } *p = '\0'; return newstring; } @@ -200,7 +200,7 @@ static void show_parameter(int snum, struct parm_struct *parm) ptr = lp_local_ptr(snum, ptr); } - printf("<tr><td>%s</td><td>", get_parm_translated(stripspace(parm->label), _("Help"), parm->label)); + printf("<tr><td>%s</td><td>", get_parm_translated(stripspaceupper(parm->label), _("Help"), parm->label)); switch (parm->type) { case P_CHAR: d_printf("<input type=text size=2 name=\"parm_%s\" value=\"%c\">", |