ps,top: add an option to show threads. +260 bytes of code
[oweals/busybox.git] / applets / individual.c
index c6d263b47aab0ccf9ba3c9905c291f67a3c2bce5..341f4d1c2c8c26c09710abeea63e962e1faebfa7 100644 (file)
@@ -1,27 +1,24 @@
 /* Minimal wrapper to build an individual busybox applet.
  *
  * Copyright 2005 Rob Landley <rob@landley.net
- * 
- * Licensed under GPLv2 or later, see file License in this tarball for details
+ *
+ * Licensed under GPL version 2, see file LICENSE in this tarball for details
  */
 
-const char *bb_applet_name;
+const char *applet_name;
 
 #include <stdio.h>
 #include <stdlib.h>
-#include "bb_config.h"
 #include "usage.h"
 
-int main(int argc, char *argv[])
+int main(int argc, char **argv)
 {
-       bb_applet_name=argv[0];
-
+       applet_name = argv[0];
        return APPLET_main(argc,argv);
 }
 
 void bb_show_usage(void)
 {
-       printf(APPLET_full_usage "\n");
-
-       exit(1);
+       fputs(APPLET_full_usage "\n", stdout);
+       exit(EXIT_FAILURE);
 }