aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-09-02 18:48:09 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-09-02 18:48:09 +0200
commit22a99516206b33b7ae124d426319bab03d5c8309 (patch)
treeb5e45ddf46dde8dd776a7c5f40221214d8432ab3
parent0d598ab9f03dbf320f7b81c05e4a94cb303dfbc7 (diff)
downloadbusybox-22a99516206b33b7ae124d426319bab03d5c8309.tar.gz
libbb: in xmalloc_fgets(), use size_t for bb_get_chunk_from_file()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/get_line_from_file.c2
1 files changed, 1 insertions, 1 deletions
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);
}