projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add optional ls file sorting, thanks to a patch from
[oweals/busybox.git]
/
sleep.c
diff --git
a/sleep.c
b/sleep.c
index 13f07c02feab2990cb1b601109e756f9d9486e23..d6705c4c3cc5c6a280c830531aad66e79fb23b98 100644
(file)
--- a/
sleep.c
+++ b/
sleep.c
@@
-24,12
+24,6
@@
#include "internal.h"
#include <stdio.h>
#include "internal.h"
#include <stdio.h>
-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)
{
if ((argc < 2) || (**(argv + 1) == '-')) {
extern int sleep_main(int argc, char **argv)
{
if ((argc < 2) || (**(argv + 1) == '-')) {
@@
-39,6
+33,6
@@
extern int sleep_main(int argc, char **argv)
if (sleep(atoi(*(++argv))) != 0) {
perror("sleep");
exit(FALSE);
if (sleep(atoi(*(++argv))) != 0) {
perror("sleep");
exit(FALSE);
- }
else
-
exit
(TRUE);
+ }
+
return
(TRUE);
}
}