From a9819b290848e0a760f3805d5937fa050235d707 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Fri, 22 Dec 2000 01:48:07 +0000 Subject: Use busybox error handling functions wherever possible. --- coreutils/sleep.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'coreutils/sleep.c') diff --git a/coreutils/sleep.c b/coreutils/sleep.c index ad92b106d..10eca593e 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c @@ -30,9 +30,7 @@ extern int sleep_main(int argc, char **argv) usage(sleep_usage); } - if (sleep(atoi(*(++argv))) != 0) { - perror("sleep"); - return EXIT_FAILURE; - } + if (sleep(atoi(*(++argv))) != 0) + perror_msg_and_die("sleep"); return EXIT_SUCCESS; } -- cgit v1.2.3