aboutsummaryrefslogtreecommitdiffstats
path: root/freebsd/Platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/Platform.c')
-rw-r--r--freebsd/Platform.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/freebsd/Platform.c b/freebsd/Platform.c
index 9c88b40..6c82bc2 100644
--- a/freebsd/Platform.c
+++ b/freebsd/Platform.c
@@ -127,8 +127,9 @@ const MeterClass* const Platform_meterTypes[] = {
NULL
};
-void Platform_init(void) {
+bool Platform_init(void) {
/* no platform-specific setup needed */
+ return true;
}
void Platform_done(void) {
@@ -284,6 +285,7 @@ bool Platform_getDiskIO(DiskIOData* data) {
if (devstat_checkversion(NULL) < 0)
return false;
+ // use static to plug memory leak; see #841
static struct devinfo info = { 0 };
struct statinfo current = { .dinfo = &info };

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