summaryrefslogtreecommitdiff
path: root/components/battery.c
Commit message (Collapse)AuthorAgeFilesLines
* battery: Separate function for readbilityAaron Marcher2018-04-291-2/+6
|
* Format error messages properlyAaron Marcher2018-03-281-2/+4
| | | | | Make use of strerror(errno) and format all errors equally: function ['parameters']: error message
* Get rid of err.h as it is not portableAaron Marcher2018-03-281-3/+2
| | | | | Replace warn() and warnx() with fprintf() and add <stdio.h> where necessary.
* More robust preprocessor switchesAaron Marcher2018-03-211-5/+5
| | | | | Replace #ifdef with #if defined() and #elif with #elif defined() as it should only test if it is defined or not.
* battery_perc: Port to OpenBSD.Aaron Marcher2018-03-191-1/+29
| | | | In OpenBSD battery percentage gets fetched using apm now.
* Build Linux-only functions only on LinuxAaron Marcher2018-03-181-0/+2
|
* Move components into dedicated subdirectoryLaslo Hunhold2017-09-241-0/+56
This brings us a lot more tidiness.