X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=usleep.c;h=6023bf430db3f05cb339bcefebcf3ebf010e9afd;hb=a2a978ae23e267c24eb7b11662afdcc9ea47e789;hp=da6cca9ab732dcb165be2616888bf538d8cbf5a9;hpb=b610615be9aedfac07d1e01f12575707fa3a227c;p=oweals%2Fbusybox.git diff --git a/usleep.c b/usleep.c index da6cca9ab..6023bf430 100644 --- a/usleep.c +++ b/usleep.c @@ -21,22 +21,18 @@ * */ -#include "internal.h" +/* getopt not needed */ + #include #include - -const char usleep_usage[] = "usleep N\n" -#ifndef BB_FEATURE_TRIVIAL_HELP - "\nPause for N microseconds.\n" -#endif - ; +#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 */ - return(TRUE); + return EXIT_SUCCESS; }