projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb6f573
)
libbb: remove unnecessary variable in xmalloc_fgets
author
Quentin Rameau
<quinq@fifth.space>
Sun, 1 Apr 2018 15:05:35 +0000
(17:05 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 1 Apr 2018 17:45:36 +0000
(19:45 +0200)
Signed-off-by: Quentin Rameau <quinq@fifth.space>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/get_line_from_file.c
patch
|
blob
|
history
diff --git
a/libbb/get_line_from_file.c
b/libbb/get_line_from_file.c
index cc61a92656d8d9e3d2ff6d619ffc720a2dce8520..941ea12b585727c9d305476a6fa2d2208299b98b 100644
(file)
--- a/
libbb/get_line_from_file.c
+++ b/
libbb/get_line_from_file.c
@@
-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)