summaryrefslogtreecommitdiffstats
path: root/linux/Battery.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-08 14:28:34 +0200
committercgzones <cgzones@googlemail.com>2020-09-18 12:28:40 +0200
commitc3952e7c20a3108c2f16aa579f8062dfc2163bd8 (patch)
tree161c8de1766dc15e97cd2705d638719bd2202af7 /linux/Battery.c
parent7107d1db0b3361a3e880d903a45920b64a05e9d6 (diff)
Use strict function prototypes
int foo(); declares a function taking any number of arguments.
Diffstat (limited to 'linux/Battery.c')
-rw-r--r--linux/Battery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/Battery.c b/linux/Battery.c
index a8784da0..1930880d 100644
--- a/linux/Battery.c
+++ b/linux/Battery.c
@@ -89,7 +89,7 @@ static unsigned long int parseBatInfo(const char *fileName, const unsigned short
return total;
}
-static ACPresence procAcpiCheck() {
+static ACPresence procAcpiCheck(void) {
ACPresence isOn = AC_ERROR;
const char *power_supplyPath = PROCDIR "/acpi/ac_adapter";
DIR *dir = opendir(power_supplyPath);
@@ -137,7 +137,7 @@ static ACPresence procAcpiCheck() {
return isOn;
}
-static double Battery_getProcBatData() {
+static double Battery_getProcBatData(void) {
const unsigned long int totalFull = parseBatInfo("info", 3, 4);
if (totalFull == 0)
return 0;