From: Jim Meyering Date: Sat, 9 Mar 1996 20:25:29 +0000 (+0000) Subject: (star_digits_closebracket): Declare formal param, IDX, and local I to X-Git-Tag: FILEUTILS-3_12j~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f090816a3f47c7bd8282978e6893db977fe91824;p=platform%2Fupstream%2Fcoreutils.git (star_digits_closebracket): Declare formal param, IDX, and local I to be of type size_t (rather than int) to avoid warnings from gcc -Wall. --- diff --git a/src/tr.c b/src/tr.c index 9b6e792..2a97d81 100644 --- a/src/tr.c +++ b/src/tr.c @@ -966,9 +966,9 @@ find_bracketed_repeat (const struct E_string *es, size_t start_idx, the `]' must not be escaped. */ static int -star_digits_closebracket (const struct E_string *es, int idx) +star_digits_closebracket (const struct E_string *es, size_t idx) { - int i; + size_t i; if (!ES_MATCH (es, idx, '*')) return 0;