Shutdown sending on the socket when stdin closes.
[oweals/busybox.git] / uptime.c
index 6a8bfa638264be56c9c4ed9127242fded8b24829..159f24baa8c722e756176a4b5fb90aade956e2d2 100644 (file)
--- a/uptime.c
+++ b/uptime.c
@@ -28,7 +28,7 @@
  */
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <time.h>
 #include <errno.h>
@@ -46,9 +46,6 @@ extern int uptime_main(int argc, char **argv)
        struct tm *current_time;
        time_t current_secs;
 
-       if (argc > 1 && strcmp(argv[1], "--help") == 0)
-               usage(uptime_usage);
-
        time(&current_secs);
        current_time = localtime(&current_secs);
 
@@ -73,5 +70,5 @@ extern int uptime_main(int argc, char **argv)
                        LOAD_INT(info.loads[1]), LOAD_FRAC(info.loads[1]), 
                        LOAD_INT(info.loads[2]), LOAD_FRAC(info.loads[2]));
 
-       return(TRUE);
+       return EXIT_SUCCESS;
 }