diff options
author | semarie <semarie@cvs.openbsd.org> | 2015-06-26 10:07:49 +0000 |
---|---|---|
committer | semarie <semarie@cvs.openbsd.org> | 2015-06-26 10:07:49 +0000 |
commit | da04a15a098dc7ac320ee8aea0c11da779e636cf (patch) | |
tree | 867f274ff57f55a585203d27ef8630753f35a8b9 | |
parent | 442a43253b8287b0a3638bccca4da0a83a5d1ab1 (diff) |
Corrects some minors nits. Patch from Theo Buehler.
- cleanup in included headers (removing unsed assert.h, and reorder)
- one remaining '%%' in an error string corrected in '%'
while here, add sys/types.h for off_t type.
OK reyk@
-rw-r--r-- | usr.sbin/httpd/patterns.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/httpd/patterns.c b/usr.sbin/httpd/patterns.c index 3b2cbcce3cc..27a813f90a2 100644 --- a/usr.sbin/httpd/patterns.c +++ b/usr.sbin/httpd/patterns.c @@ -1,4 +1,4 @@ -/* $OpenBSD: patterns.c,v 1.2 2015/06/23 15:35:20 semarie Exp $ */ +/* $OpenBSD: patterns.c,v 1.3 2015/06/26 10:07:48 semarie Exp $ */ /* * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -26,16 +26,16 @@ /* * Derived from Lua 5.3.1: - * $Id: patterns.c,v 1.2 2015/06/23 15:35:20 semarie Exp $ + * $Id: patterns.c,v 1.3 2015/06/26 10:07:48 semarie Exp $ * Standard library for string operations and pattern-matching */ +#include <sys/types.h> +#include <ctype.h> +#include <errno.h> #include <stddef.h> #include <stdlib.h> #include <string.h> -#include <ctype.h> -#include <errno.h> -#include <assert.h> #include "patterns.h" @@ -98,7 +98,7 @@ classend(struct match_state *ms, const char *p) case L_ESC: if (p == ms->p_end) match_error(ms, - "malformed pattern (ends with '%%')"); + "malformed pattern (ends with '%')"); return p + 1; case '[': if (*p == '^') |