X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=coreutils%2Fsleep.c;h=3bcab88ee776469f8cdaab7e9180d5672acceaa4;hb=8b7a0d807a3ec8cfcbc4e4cb3067237b438bae14;hp=d6705c4c3cc5c6a280c830531aad66e79fb23b98;hpb=bf181b9338152759fd56c8009e9a962a84808e7c;p=oweals%2Fbusybox.git diff --git a/coreutils/sleep.c b/coreutils/sleep.c index d6705c4c3..3bcab88ee 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c @@ -21,18 +21,18 @@ * */ -#include "internal.h" #include +#include +#include +#include "busybox.h" extern int sleep_main(int argc, char **argv) { if ((argc < 2) || (**(argv + 1) == '-')) { - usage(sleep_usage); + show_usage(); } - if (sleep(atoi(*(++argv))) != 0) { - perror("sleep"); - exit(FALSE); - } - return(TRUE); + if (sleep(atoi(*(++argv))) != 0) + perror_msg_and_die("sleep"); + return EXIT_SUCCESS; }