aboutsummaryrefslogtreecommitdiff
path: root/toys/sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/sleep.c')
-rw-r--r--toys/sleep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/sleep.c b/toys/sleep.c
index 06c4565d..1426690f 100644
--- a/toys/sleep.c
+++ b/toys/sleep.c
@@ -5,7 +5,7 @@
#include "toys.h"
-int sleep_main(void)
+void sleep_main(void)
{
- return sleep(atol(*toys.optargs));
+ toys.exitval = sleep(atol(*toys.optargs));
}