Age | Commit message (Collapse) | Author |
|
Make use of strerror(errno) and format all errors equally:
function ['parameters']: error message
|
|
Replace warn() and warnx() with fprintf() and add <stdio.h> where
necessary.
|
|
Replace #ifdef with #if defined() and #elif with #elif defined() as it
should only test if it is defined or not.
|
|
In OpenBSD uptime gets fetched using sysctl now.
|
|
In OpenBSD battery percentage gets fetched using apm now.
|
|
|
|
When an invalid interface name is passed to wifi_essid() it does not
close opened sockets.
|
|
Implement basic percentage calculation for wifi_perc. With this
commit, the function returns correct percentage, since the max
of what /proc/net/wireless returns is 70.
|
|
This brings us a lot more tidiness.
|