diff options
author | rlar <rlar> | 2016-02-29 20:26:18 +0100 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-03-01 06:06:42 -0500 |
commit | f951c3f8cc581771013e657fd57bdce4d73aad1a (patch) | |
tree | 3539b18fd77287b1154e13bc9f56f5cc35ad5138 /src | |
parent | 22d123c1fe6f6298616ae80b7be7f3a52cedf068 (diff) |
use type size_t in filter_tee_header() to avoid warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filter.c b/src/filter.c index 9500f96..1ac199f 100644 --- a/src/filter.c +++ b/src/filter.c @@ -336,7 +336,7 @@ int filter_tee_header (struct filter *chain) int filter_fix_linedirs (struct filter *chain) { char *buf; - const int readsz = 512; + const size_t readsz = 512; int lineno = 1; bool in_gen = true; /* in generated code */ bool last_was_blank = false; @@ -348,7 +348,7 @@ int filter_fix_linedirs (struct filter *chain) if (!buf) flexerror(_("malloc failed in filter_fix_linedirs")); - while (fgets (buf, readsz, stdin)) { + while (fgets (buf, (int) readsz, stdin)) { regmatch_t m[10]; |