Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
wifi: fixed disconnected wifi status on openbsd
[slstatus.git]
/
components
/
uptime.c
diff --git
a/components/uptime.c
b/components/uptime.c
index
45e12db
..
8f15d71
100644
(file)
--- a/
components/uptime.c
+++ b/
components/uptime.c
@@
-3,7
+3,7
@@
#include "../util.h"
-const char *
+
static
const char *
format(int uptime)
{
int h, m;
@@
-29,8
+29,6
@@
format(int uptime)
return format(uptime);
}
#elif defined(__OpenBSD__)
- #include <errno.h>
- #include <string.h>
#include <sys/sysctl.h>
#include <sys/time.h>