From: Denys Vlasenko Date: Sun, 2 Sep 2018 16:48:09 +0000 (+0200) Subject: libbb: in xmalloc_fgets(), use size_t for bb_get_chunk_from_file() X-Git-Tag: 1_30_0~453 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=22a99516206b33b7ae124d426319bab03d5c8309;p=oweals%2Fbusybox.git libbb: in xmalloc_fgets(), use size_t for bb_get_chunk_from_file() Signed-off-by: Denys Vlasenko --- diff --git a/libbb/get_line_from_file.c b/libbb/get_line_from_file.c index 49ef093c2..903ff1fb6 100644 --- a/libbb/get_line_from_file.c +++ b/libbb/get_line_from_file.c @@ -47,7 +47,7 @@ char* FAST_FUNC bb_get_chunk_from_file(FILE *file, size_t *end) /* Get line, including trailing \n if any */ char* FAST_FUNC xmalloc_fgets(FILE *file) { - int i; + size_t i; return bb_get_chunk_from_file(file, &i); }