simplify simplified parse.c. Reference: /n/sources/patch/applied/libhttpd-nits Date: Mon Oct 1 02:16:18 CES 2007 Signed-off-by: rsc@swtch.com --- /sys/src/libhttpd/parse.c Mon Oct 1 02:16:10 2007 +++ /sys/src/libhttpd/parse.c Mon Oct 1 02:16:09 2007 @@ -110,7 +110,7 @@ static ulong digtoul(char *s, char **e); /* - * flush an clean up junk from a request + * flush and clean up junk from a request */ void hreqcleanup(HConnect *c) @@ -753,7 +753,7 @@ lex1(h, 1); while((c = getc(h)) >= 0){ - if(!(isascii(c) && isalnum(c) || c == '+' || c == '/')){ + if(!isalnum(c) && c != '+' && c != '/'){ ungetc(h); break; }