Added changelog entries for grep/sed/regex changes.
[oweals/busybox.git] / procps / uptime.c
index af54158c967250c9e42dcaef5adedf226f83db69..efdbccf00e87f494f02c4d6a2d50b799af3e01d6 100644 (file)
 #include "internal.h"
 #include <stdio.h>
 #include <time.h>
-#include <sys/sysinfo.h>
+#include <errno.h>
 
 #define FSHIFT          16              /* nr of bits of precision */
 #define FIXED_1         (1<<FSHIFT)     /* 1.0 as fixed-point */
 #define LOAD_INT(x) ((x) >> FSHIFT)
 #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)
 
+
 extern int uptime_main(int argc, char **argv)
 {
        int updays, uphours, upminutes;
@@ -69,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]));
 
-       exit(TRUE);
+       return(TRUE);
 }