diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-02-04 18:03:17 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2023-02-04 18:13:10 +0100 |
commit | ca7e92bd78368befa88a3a6d732d1595c388c660 (patch) | |
tree | 54c22c3db2c79737b3fe91dbaa4333eae034dae1 /dragonflybsd | |
parent | c9f654da96f9af05d599bc778575dd5b71a2c5ae (diff) |
Use strict function prototypes also for defintions
freebsd/Platform.c:151:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
int Platform_getUptime() {
^
void
Diffstat (limited to 'dragonflybsd')
-rw-r--r-- | dragonflybsd/Platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c index 769a46ed..8a684d86 100644 --- a/dragonflybsd/Platform.c +++ b/dragonflybsd/Platform.c @@ -126,7 +126,7 @@ void Platform_setBindings(Htop_Action* keys) { (void) keys; } -int Platform_getUptime() { +int Platform_getUptime(void) { struct timeval bootTime, currTime; int mib[2] = { CTL_KERN, KERN_BOOTTIME }; size_t size = sizeof(bootTime); @@ -157,7 +157,7 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen) { *fifteen = (double) loadAverage.ldavg[2] / loadAverage.fscale; } -int Platform_getMaxPid() { +int Platform_getMaxPid(void) { int maxPid; size_t size = sizeof(maxPid); int err = sysctlbyname("kern.pid_max", &maxPid, &size, NULL, 0); |