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 /solaris | |
parent | 08d85e61435e43ade490ecef16437f93c0d88bed (diff) |
Mark Object instances const
Diffstat (limited to 'solaris')
-rw-r--r-- | solaris/Platform.c | 2 | ||||
-rw-r--r-- | solaris/Platform.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/solaris/Platform.c b/solaris/Platform.c index 5f737342..e1243bfa 100644 --- a/solaris/Platform.c +++ b/solaris/Platform.c @@ -87,7 +87,7 @@ const unsigned int Platform_numberOfSignals = sizeof(Platform_signals)/sizeof(Si ProcessField Platform_defaultFields[] = { PID, LWPID, USER, PRIORITY, NICE, M_SIZE, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 }; -MeterClass* Platform_meterTypes[] = { +const MeterClass* const Platform_meterTypes[] = { &CPUMeter_class, &ClockMeter_class, &DateMeter_class, diff --git a/solaris/Platform.h b/solaris/Platform.h index fa8be103..a9b7712d 100644 --- a/solaris/Platform.h +++ b/solaris/Platform.h @@ -37,7 +37,7 @@ extern const unsigned int Platform_numberOfSignals; extern ProcessField Platform_defaultFields[]; -extern MeterClass* Platform_meterTypes[]; +extern const MeterClass* const Platform_meterTypes[]; void Platform_setBindings(Htop_Action* keys); |