usage.c: remove reference to busybox.h
[oweals/busybox.git] / libbb / chomp.c
index 6165b83bca649d1ab80a9a188ed6b0764d32a04a..8ffaff5184ceef0807d1ce63c60f7a31da0a2cfc 100644 (file)
@@ -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';
 }