projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usage.c: remove reference to busybox.h
[oweals/busybox.git]
/
libbb
/
chomp.c
diff --git
a/libbb/chomp.c
b/libbb/chomp.c
index 6165b83bca649d1ab80a9a188ed6b0764d32a04a..8ffaff5184ceef0807d1ce63c60f7a31da0a2cfc 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.
*/
-#include <stdio.h>
-#include <string.h>
#include "libbb.h"
-
void chomp(char *s)
{
char *lc = last_char_is(s, '\n');
- if(lc)
- *lc =
0
;
+ if
(lc)
+ *lc =
'\0'
;
}