summaryrefslogtreecommitdiffstats
path: root/linux
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
parent7107d1db0b3361a3e880d903a45920b64a05e9d6 (diff)
Use strict function prototypes
int foo(); declares a function taking any number of arguments.
Diffstat (limited to 'linux')
-rw-r--r--linux/Battery.c4
-rw-r--r--linux/Platform.h4
2 files changed, 4 insertions, 4 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;
diff --git a/linux/Platform.h b/linux/Platform.h
index 9f0ee7fd..5060ea24 100644
--- a/linux/Platform.h
+++ b/linux/Platform.h
@@ -25,11 +25,11 @@ void Platform_setBindings(Htop_Action* keys);
extern MeterClass* Platform_meterTypes[];
-int Platform_getUptime();
+int Platform_getUptime(void);
void Platform_getLoadAverage(double* one, double* five, double* fifteen);
-int Platform_getMaxPid();
+int Platform_getMaxPid(void);
double Platform_setCPUValues(Meter* this, int cpu);