summaryrefslogtreecommitdiffstats
path: root/darwin
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 /darwin
parent08d85e61435e43ade490ecef16437f93c0d88bed (diff)
Mark Object instances const
Diffstat (limited to 'darwin')
-rw-r--r--darwin/Platform.c2
-rw-r--r--darwin/Platform.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c
index fabf5520..4d8ede32 100644
--- a/darwin/Platform.c
+++ b/darwin/Platform.c
@@ -94,7 +94,7 @@ ProcessFieldData Process_fields[] = {
[100] = { .name = "*** report bug! ***", .title = NULL, .description = NULL, .flags = 0, },
};
-MeterClass* Platform_meterTypes[] = {
+const MeterClass* const Platform_meterTypes[] = {
&CPUMeter_class,
&ClockMeter_class,
&DateMeter_class,
diff --git a/darwin/Platform.h b/darwin/Platform.h
index ba779976..9b7a324b 100644
--- a/darwin/Platform.h
+++ b/darwin/Platform.h
@@ -22,7 +22,7 @@ extern const unsigned int Platform_numberOfSignals;
extern ProcessFieldData Process_fields[];
-extern MeterClass* Platform_meterTypes[];
+extern const MeterClass* const Platform_meterTypes[];
void Platform_setBindings(Htop_Action* keys);

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