libbb: in xmalloc_fgets(), use size_t for bb_get_chunk_from_file()

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-09-02 18:48:09 +02:00
parent 0d598ab9f0
commit 22a9951620

View File

@ -47,7 +47,7 @@ char* FAST_FUNC bb_get_chunk_from_file(FILE *file, size_t *end)
/* Get line, including trailing \n if any */ /* Get line, including trailing \n if any */
char* FAST_FUNC xmalloc_fgets(FILE *file) char* FAST_FUNC xmalloc_fgets(FILE *file)
{ {
int i; size_t i;
return bb_get_chunk_from_file(file, &i); return bb_get_chunk_from_file(file, &i);
} }