Use strict function prototypes

int foo(); declares a function taking any number of arguments.
This commit is contained in:
Christian Göttsche
2020-09-08 14:28:34 +02:00
committed by cgzones
parent 7107d1db0b
commit c3952e7c20
16 changed files with 32 additions and 32 deletions

View File

@ -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;

View File

@ -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);