mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Use strict function prototypes
int foo(); declares a function taking any number of arguments.
This commit is contained in:

committed by
cgzones

parent
7107d1db0b
commit
c3952e7c20
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user