X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=coreutils%2Fsleep.c;h=3bcab88ee776469f8cdaab7e9180d5672acceaa4;hb=fccaa3629b89bcfcd2d9b4126255cd31e0f5e174;hp=ad92b106d36abdb30ed5f8c3bc9a50e40e85585c;hpb=3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0;p=oweals%2Fbusybox.git diff --git a/coreutils/sleep.c b/coreutils/sleep.c index ad92b106d..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"); - return EXIT_FAILURE; - } + if (sleep(atoi(*(++argv))) != 0) + perror_msg_and_die("sleep"); return EXIT_SUCCESS; }