From 585a8dcf51a46cd9965c6881cfff6eddbae06d48 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 29 Dec 2012 22:52:17 -0800 Subject: [PATCH] regex: port to C89 Reported by Aharon Robbins in . * lib/regcomp.c (init_word_char): Declaration before statement. --- ChangeLog | 5 +++++ lib/regcomp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5980ba15ee..b3e202a2ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2012-12-29 Paul Eggert + regex: port to C89 + Reported by Aharon Robbins in + . + * lib/regcomp.c (init_word_char): Declaration before statement. + regex: merge glibc changes Also, copy the license wording from glibc. This simplifies merging changes. gnulib-tool will change the wording to GPL as diff --git a/lib/regcomp.c b/lib/regcomp.c index 3e2165b2a9..398df66ce4 100644 --- a/lib/regcomp.c +++ b/lib/regcomp.c @@ -953,10 +953,10 @@ static void internal_function init_word_char (re_dfa_t *dfa) { - dfa->word_ops_used = 1; int i = 0; int j; int ch = 0; + dfa->word_ops_used = 1; if (BE (dfa->map_notascii == 0, 1)) { bitset_word_t bits0 = 0x00000000; -- 2.39.5