- add libbb function str_tolower to convert a string to lowercase.
[oweals/busybox.git] / coreutils / wc.c
index 4b76e549950816fe59ee4869253d31324d800078..926b3ac19eaf1b2937420a2572197687bdf76a7f 100644 (file)
@@ -44,8 +44,6 @@
 #include "busybox.h"
 
 #ifdef CONFIG_LOCALE_SUPPORT
-#include <locale.h>
-#include <ctype.h>
 #define isspace_given_isprint(c) isspace(c)
 #else
 #undef isspace
@@ -70,6 +68,7 @@ enum {
        WC_LENGTH       = 3
 };
 
+int wc_main(int argc, char **argv);
 int wc_main(int argc, char **argv)
 {
        FILE *fp;
@@ -83,8 +82,8 @@ int wc_main(int argc, char **argv)
        unsigned u;
        int num_files = 0;
        int c;
-       char status = EXIT_SUCCESS;
-       char in_word;
+       smallint status = EXIT_SUCCESS;
+       smallint in_word;
        unsigned print_type;
 
        print_type = getopt32(argc, argv, "lwcL");