diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-05 13:19:50 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-07 13:01:53 +0200 |
commit | ba282cfe193719f4fe030ebdcd80519ae19ffca2 (patch) | |
tree | cef89de747bb4312f7d5903f19f73ee04503e5ec /unsupported | |
parent | 08d85e61435e43ade490ecef16437f93c0d88bed (diff) |
Mark Object instances const
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/Platform.c | 2 | ||||
-rw-r--r-- | unsupported/Platform.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c index da360a31..304989ee 100644 --- a/unsupported/Platform.c +++ b/unsupported/Platform.c @@ -58,7 +58,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/unsupported/Platform.h b/unsupported/Platform.h index 8349d97a..ce188afa 100644 --- a/unsupported/Platform.h +++ b/unsupported/Platform.h @@ -21,7 +21,7 @@ extern ProcessField Platform_defaultFields[]; extern ProcessFieldData Process_fields[]; -extern MeterClass* Platform_meterTypes[]; +extern const MeterClass* const Platform_meterTypes[]; void Platform_setBindings(Htop_Action* keys); |