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 --- darwin/Platform.c | 2 +- darwin/Platform.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'darwin') 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); -- cgit v1.2.3