Stop using TRUE and FALSE for exit status.
[oweals/busybox.git] / du.c
diff --git a/du.c b/du.c
index f1a44427abf5c88dca2b45a10e243b34d419e868..a0f1606fe8dc2c5cc497f90143e53da8cb427ea3 100644 (file)
--- a/du.c
+++ b/du.c
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #define BB_DECLARE_EXTERN
 #define bb_need_name_too_long
 #include "messages.c"
 
 typedef void (Display) (long, char *);
 
-static const char du_usage[] =
-       "du [OPTION]... [FILE]...\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
-       "\nSummarizes disk space used for each FILE and/or directory.\n"
-       "Disk space is printed in units of 1024 bytes.\n\n"
-       "Options:\n"
-       "\t-l\tcount sizes many times if hard linked\n"
-       "\t-s\tdisplay only a total for each argument\n"
-#endif
-       ;
-
 static int du_depth = 0;
 static int count_hardlinks = 0;
 
@@ -137,7 +126,7 @@ static long du(char *filename)
 int du_main(int argc, char **argv)
 {
        int i;
-       char c;
+       int c;
 
        /* default behaviour */
        print = print_normal;
@@ -171,10 +160,10 @@ int du_main(int argc, char **argv)
                }
        }
 
-       return(0);
+       return EXIT_SUCCESS;
 }
 
-/* $Id: du.c,v 1.22 2000/07/14 18:38:26 andersen Exp $ */
+/* $Id: du.c,v 1.26 2000/12/01 02:55:13 kraai Exp $ */
 /*
 Local Variables:
 c-file-style: "linux"