projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
init: fix logically inverted FEATURE_EXTRA_QUIET check
[oweals/busybox.git]
/
libbb
/
chomp.c
diff --git
a/libbb/chomp.c
b/libbb/chomp.c
index 6165b83bca649d1ab80a9a188ed6b0764d32a04a..ed4bf6bebf655b040f1c79070aac276383a1df4d 100644
(file)
--- a/
libbb/chomp.c
+++ b/
libbb/chomp.c
@@
-8,15
+8,12
@@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <stdio.h>
-#include <string.h>
#include "libbb.h"
#include "libbb.h"
-
-void chomp(char *s)
+void FAST_FUNC chomp(char *s)
{
char *lc = last_char_is(s, '\n');
{
char *lc = last_char_is(s, '\n');
- if(lc)
- *lc =
0
;
+ if
(lc)
+ *lc =
'\0'
;
}
}