X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=coreutils%2Fsleep.c;h=3bcab88ee776469f8cdaab7e9180d5672acceaa4;hb=6aabfd5e30087bb0ffdb6404aa6d650014de2dc0;hp=709e3de34b7a2527b1efe26838ba956bc2890d55;hpb=3570a34de46b1f7dedd16999bb1687e2d6b55d40;p=oweals%2Fbusybox.git diff --git a/coreutils/sleep.c b/coreutils/sleep.c index 709e3de34..3bcab88ee 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c @@ -21,18 +21,18 @@ * */ -#include "busybox.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; }