diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-06 12:28:11 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-10 11:25:19 +0200 |
commit | 79ad39c718bfb2973d610c2d039a5024354e602f (patch) | |
tree | efac0bfaf60cc44a5a2b2a8c8db251cbacf5ebab /SwapMeter.c | |
parent | e5fdb80c7d13d836ec244390976741dd99bc6535 (diff) |
Mark Object pointer to _display function const
Diffstat (limited to 'SwapMeter.c')
-rw-r--r-- | SwapMeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SwapMeter.c b/SwapMeter.c index e754bbe6..fc4e6b28 100644 --- a/SwapMeter.c +++ b/SwapMeter.c @@ -34,9 +34,9 @@ static void SwapMeter_updateValues(Meter* this, char* buffer, int size) { } } -static void SwapMeter_display(Object* cast, RichString* out) { +static void SwapMeter_display(const Object* cast, RichString* out) { char buffer[50]; - Meter* this = (Meter*)cast; + const Meter* this = (const Meter*)cast; RichString_write(out, CRT_colors[METER_TEXT], ":"); Meter_humanUnit(buffer, this->total, 50); RichString_append(out, CRT_colors[METER_VALUE], buffer); |