summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-25 14:03:55 +0200
committerChristian Göttsche <cgzones@googlemail.com>2020-09-25 17:20:35 +0200
commit4e282eb845c68d70093dda2c078604d52e8fee87 (patch)
tree806c055d99b861894d801d5c4caa8cd5fe9951fa /openbsd
parent18b1e9fba95ce50d47c2199920f6727f26de4063 (diff)
Add -Wmissing-prototypes compiler warning
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/Battery.c3
-rw-r--r--openbsd/Battery.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/openbsd/Battery.c b/openbsd/Battery.c
index 66e4b631..61233030 100644
--- a/openbsd/Battery.c
+++ b/openbsd/Battery.c
@@ -6,7 +6,8 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
-#include "BatteryMeter.h"
+#include "Battery.h"
+
#include <sys/sysctl.h>
#include <sys/sensors.h>
#include <errno.h>
diff --git a/openbsd/Battery.h b/openbsd/Battery.h
index e858b15d..bf80f3f6 100644
--- a/openbsd/Battery.h
+++ b/openbsd/Battery.h
@@ -8,6 +8,8 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
+#include "BatteryMeter.h"
+
void Battery_getData(double* level, ACPresence* isOnAC);
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy