summaryrefslogtreecommitdiffstats
path: root/linux
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 /linux
parent08d85e61435e43ade490ecef16437f93c0d88bed (diff)
Mark Object instances const
Diffstat (limited to 'linux')
-rw-r--r--linux/Platform.c2
-rw-r--r--linux/Platform.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux/Platform.c b/linux/Platform.c
index 6ec0d076..e0a03548 100644
--- a/linux/Platform.c
+++ b/linux/Platform.c
@@ -105,7 +105,7 @@ void Platform_setBindings(Htop_Action* keys) {
keys['i'] = Platform_actionSetIOPriority;
}
-MeterClass* Platform_meterTypes[] = {
+const MeterClass* const Platform_meterTypes[] = {
&CPUMeter_class,
&ClockMeter_class,
&DateMeter_class,
diff --git a/linux/Platform.h b/linux/Platform.h
index 58f5acec..66a60d8b 100644
--- a/linux/Platform.h
+++ b/linux/Platform.h
@@ -23,7 +23,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