gz_open and gz_close were left in, even when BB_FEATURE_TAR_GZIP was disabled.
[oweals/busybox.git] / wc.c
diff --git a/wc.c b/wc.c
index 619c161a70f5eb93c4fe345034c31a1596370651..695e7e7d4e4b765b1954d5ecb5d9ea11f1128a10 100644 (file)
--- a/wc.c
+++ b/wc.c
  *
  */
 
-#include "busybox.h"
 #include <stdio.h>
 #include <getopt.h>
+#include <string.h>
 #include <stdlib.h>
+#include "busybox.h"
 
 static int total_lines, total_words, total_chars, max_length;
 static int print_lines, print_words, print_chars, print_length;
 
-void print_counts(int lines, int words, int chars, int length,
-                                 const char *name)
+static void print_counts(int lines, int words, int chars, int length,
+                                                const char *name)
 {
        char const *space = "";
 
@@ -126,7 +127,7 @@ int wc_main(int argc, char **argv)
                                print_words = 1;
                                break;
                        default:
-                               usage(wc_usage);
+                               show_usage();
                        }
        }