diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-05 01:32:19 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-05 01:32:19 +0200 |
commit | 10f19b4565a82a9fb2ebb7bf938154afb4e09ad6 (patch) | |
tree | bb27e4a0e484e0b45cc200fe22441612f0ef0a4a /libc/misc/regex | |
parent | c75712b15a5e0655c15707e1e1340da9d5e2646a (diff) |
regex_old: convert static flag variable to smallint
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libc/misc/regex')
-rw-r--r-- | libc/misc/regex/regex_old.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/misc/regex/regex_old.c b/libc/misc/regex/regex_old.c index bc2ad6cb8..a3c30b51a 100644 --- a/libc/misc/regex/regex_old.c +++ b/libc/misc/regex/regex_old.c @@ -23,7 +23,8 @@ /* To exclude some unwanted junk.... */ #undef emacs #include <features.h> - +/* unistd.h must be included with _LIBC defined: we need smallint */ +#include <unistd.h> #ifdef __UCLIBC__ # undef _LIBC # define _REGEX_RE_COMP @@ -33,7 +34,6 @@ #include <stdlib.h> #include <stdint.h> #include <string.h> -#include <unistd.h> #include <stdio.h> /* AIX requires this to be the first thing in the file. */ @@ -263,7 +263,7 @@ static void init_syntax_once (void) { register int c; - static int done = 0; + static smallint done = 0; if (done) return; |