X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=coreutils%2Fusleep.c;h=6023bf430db3f05cb339bcefebcf3ebf010e9afd;hb=4bcdd7214217bfdaa2c4015425d439686d5b8b0b;hp=34008a638aab4fe683a209c1910a3c4a4697d268;hpb=7ab9c7ee52db8759d457819f5480378fa3aa97cc;p=oweals%2Fbusybox.git diff --git a/coreutils/usleep.c b/coreutils/usleep.c index 34008a638..6023bf430 100644 --- a/coreutils/usleep.c +++ b/coreutils/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 */ - exit(TRUE); + return EXIT_SUCCESS; }