From ba282cfe193719f4fe030ebdcd80519ae19ffca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 5 Oct 2020 13:19:50 +0200 Subject: Mark Object instances const --- unsupported/Platform.c | 2 +- unsupported/Platform.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported') 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); -- cgit v1.2.3