From 79ad39c718bfb2973d610c2d039a5024354e602f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 6 Oct 2020 12:28:11 +0200 Subject: Mark Object pointer to _display function const --- linux/PressureStallMeter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/PressureStallMeter.c') diff --git a/linux/PressureStallMeter.c b/linux/PressureStallMeter.c index 577692e3..a54b4375 100644 --- a/linux/PressureStallMeter.c +++ b/linux/PressureStallMeter.c @@ -41,8 +41,8 @@ static void PressureStallMeter_updateValues(Meter* this, char* buffer, int len) xSnprintf(buffer, len, "xxxx %.2lf%% %.2lf%% %.2lf%%", this->values[0], this->values[1], this->values[2]); } -static void PressureStallMeter_display(Object* cast, RichString* out) { - Meter* this = (Meter*)cast; +static void PressureStallMeter_display(const Object* cast, RichString* out) { + const Meter* this = (const Meter*)cast; char buffer[20]; xSnprintf(buffer, sizeof(buffer), "%.2lf%% ", this->values[0]); RichString_write(out, CRT_colors[PRESSURE_STALL_TEN], buffer); -- cgit v1.2.3