ethr-wake: can use ether_hostton on uclibc >= 0.9.30
[oweals/busybox.git] / procps / uptime.c
index 3573ffe73472fcbf651b91c3c19f4b01b3fd6c4b..d9aa1d03723db8fea1e044192319fa01720ff8f6 100644 (file)
@@ -15,7 +15,7 @@
 
 /* getopt not needed */
 
-#include "busybox.h"
+#include "libbb.h"
 
 #ifndef FSHIFT
 # define FSHIFT 16              /* nr of bits of precision */
@@ -25,8 +25,8 @@
 #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)
 
 
-int uptime_main(int argc, char **argv);
-int uptime_main(int argc, char **argv)
+int uptime_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
+int uptime_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
 {
        int updays, uphours, upminutes;
        struct sysinfo info;
@@ -46,7 +46,7 @@ int uptime_main(int argc, char **argv)
        upminutes = (int) info.uptime / 60;
        uphours = (upminutes / 60) % 24;
        upminutes %= 60;
-       if(uphours)
+       if (uphours)
                printf("%2d:%02d, ", uphours, upminutes);
        else
                printf("%d min, ", upminutes);