summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-05 13:19:50 +0200
committercgzones <cgzones@googlemail.com>2020-10-07 13:01:53 +0200
commitba282cfe193719f4fe030ebdcd80519ae19ffca2 (patch)
treecef89de747bb4312f7d5903f19f73ee04503e5ec /openbsd
parent08d85e61435e43ade490ecef16437f93c0d88bed (diff)
Mark Object instances const
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/Platform.c2
-rw-r--r--openbsd/Platform.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c
index 0368d722..02a821e7 100644
--- a/openbsd/Platform.c
+++ b/openbsd/Platform.c
@@ -90,7 +90,7 @@ void Platform_setBindings(Htop_Action* keys) {
(void) keys;
}
-MeterClass* Platform_meterTypes[] = {
+const MeterClass* const Platform_meterTypes[] = {
&CPUMeter_class,
&ClockMeter_class,
&DateMeter_class,
diff --git a/openbsd/Platform.h b/openbsd/Platform.h
index dc9b0fa3..c71d490e 100644
--- a/openbsd/Platform.h
+++ b/openbsd/Platform.h
@@ -25,7 +25,7 @@ extern const unsigned int Platform_numberOfSignals;
void Platform_setBindings(Htop_Action* keys);
-extern MeterClass* Platform_meterTypes[];
+extern const MeterClass* const Platform_meterTypes[];
int Platform_getUptime(void);

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