summaryrefslogtreecommitdiffstats
path: root/linux/Platform.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2022-08-04 21:09:44 +0200
committercgzones <cgzones@googlemail.com>2022-08-09 20:30:05 +0200
commit9a4879b48f9ca1a39aa4eaa67bccc171cd5bca35 (patch)
treeea05b3a733209b83bcebc40a8f8af120ac8ebfca /linux/Platform.c
parent3e1908b80ab214b7b449b49183d1bd5d39c174e3 (diff)
Please Clang 15
CRT.c:1015:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] void CRT_done() { ^ void
Diffstat (limited to 'linux/Platform.c')
-rw-r--r--linux/Platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/Platform.c b/linux/Platform.c
index 38b66e83..e442e14b 100644
--- a/linux/Platform.c
+++ b/linux/Platform.c
@@ -250,7 +250,7 @@ const MeterClass* const Platform_meterTypes[] = {
NULL
};
-int Platform_getUptime() {
+int Platform_getUptime(void) {
double uptime = 0;
FILE* fd = fopen(PROCDIR "/uptime", "r");
if (fd) {
@@ -285,7 +285,7 @@ err:
*fifteen = NAN;
}
-int Platform_getMaxPid() {
+int Platform_getMaxPid(void) {
FILE* file = fopen(PROCDIR "/sys/kernel/pid_max", "r");
if (!file)
return -1;

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