From c3952e7c20a3108c2f16aa579f8062dfc2163bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 8 Sep 2020 14:28:34 +0200 Subject: Use strict function prototypes int foo(); declares a function taking any number of arguments. --- linux/Battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/Battery.c') 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; -- cgit v1.2.3