summaryrefslogtreecommitdiffstats
path: root/solaris
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-02-04 18:03:17 +0100
committerChristian Göttsche <cgzones@googlemail.com>2023-02-04 18:13:10 +0100
commitca7e92bd78368befa88a3a6d732d1595c388c660 (patch)
tree54c22c3db2c79737b3fe91dbaa4333eae034dae1 /solaris
parentc9f654da96f9af05d599bc778575dd5b71a2c5ae (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 'solaris')
-rw-r--r--solaris/Platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/solaris/Platform.c b/solaris/Platform.c
index f3a386bc..96f35263 100644
--- a/solaris/Platform.c
+++ b/solaris/Platform.c
@@ -144,7 +144,7 @@ void Platform_setBindings(Htop_Action* keys) {
(void) keys;
}
-int Platform_getUptime() {
+int Platform_getUptime(void) {
int boot_time = 0;
int curr_time = time(NULL);
struct utmpx* ent;
@@ -173,7 +173,7 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen) {
*fifteen = plat_loadavg[LOADAVG_15MIN];
}
-int Platform_getMaxPid() {
+int Platform_getMaxPid(void) {
int vproc = 32778; // Reasonable Solaris default
kstat_ctl_t* kc = kstat_open();

© 2014-2024 Faster IT GmbH | imprint | privacy policy