mirror of
https://git.busybox.net/busybox.git
synced 2024-11-23 21:53:25 +08:00
libbb: remove unnecessary variable in xmalloc_fgets
Signed-off-by: Quentin Rameau <quinq@fifth.space> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
bb6f573ad2
commit
2da9724b56
@ -44,9 +44,7 @@ char* FAST_FUNC bb_get_chunk_from_file(FILE *file, int *end)
|
||||
/* Get line, including trailing \n if any */
|
||||
char* FAST_FUNC xmalloc_fgets(FILE *file)
|
||||
{
|
||||
int i;
|
||||
|
||||
return bb_get_chunk_from_file(file, &i);
|
||||
return bb_get_chunk_from_file(file, NULL);
|
||||
}
|
||||
/* Get line. Remove trailing \n */
|
||||
char* FAST_FUNC xmalloc_fgetline(FILE *file)
|
||||
|
Loading…
Reference in New Issue
Block a user