Fixed segfault with 'cut -f 1 -d:' and added 'cut -s' suport.
[oweals/busybox.git] / sleep.c
diff --git a/sleep.c b/sleep.c
index 9687b84460300917a26d743d0ce283d3992b81b5..c7ab32d4bc96467f77049b9bddd9e51242d12efc 100644 (file)
--- a/sleep.c
+++ b/sleep.c
 #include "internal.h"
 #include <stdio.h>
 
-const char sleep_usage[] = "sleep N\n\n" "Pause for N seconds.\n";
+const char sleep_usage[] = "sleep N\n" 
+#ifndef BB_FEATURE_TRIVIAL_HELP
+       "\nPause for N seconds.\n"
+#endif
+       ;
 
 extern int sleep_main(int argc, char **argv)
 {
@@ -35,6 +39,6 @@ extern int sleep_main(int argc, char **argv)
        if (sleep(atoi(*(++argv))) != 0) {
                perror("sleep");
                exit(FALSE);
-       } else
-               exit(TRUE);
+       }
+       return(TRUE);
 }