summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-03-09 20:25:29 +0000
committerJim Meyering <jim@meyering.net>1996-03-09 20:25:29 +0000
commitf090816a3f47c7bd8282978e6893db977fe91824 (patch)
tree0090d3b94deb32a63e737cb2045982afe78a99b3 /src
parentd385bbc98542ea77523412a71c2d1043573fee70 (diff)
downloadcoreutils-f090816a3f47c7bd8282978e6893db977fe91824.tar.xz
(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.
Diffstat (limited to 'src')
-rw-r--r--src/tr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tr.c b/src/tr.c
index 9b6e7923c..2a97d8157 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;