use tmpfile() and revert my previous changes... convert() belongs here
[oweals/busybox.git] / coreutils / usleep.c
index dcb40d65a2d7e22eac288bb75d1d1abbf350cdac..6023bf430db3f05cb339bcefebcf3ebf010e9afd 100644 (file)
  *
  */
 
-#include "internal.h"
+/* getopt not needed */
+
 #include <stdlib.h>
 #include <unistd.h>
-
-const char usleep_usage[] = "usleep N\n\n" "Pause for N microseconds.\n";
+#include "busybox.h"
 
 extern int usleep_main(int argc, char **argv)
 {
        if ((argc < 2) || (**(argv + 1) == '-')) {
-               usage(usleep_usage);
+               show_usage();
        }
 
        usleep(atoi(*(++argv)));        /* return void */
-       exit(TRUE);
+       return EXIT_SUCCESS;
 }