diff options
Diffstat (limited to 'libbb/chomp.c')
-rw-r--r-- | libbb/chomp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libbb/chomp.c b/libbb/chomp.c index 6165b83..eab7707 100644 --- 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) + if (lc) *lc = 0; } |