Reduce scope of local variables

This commit is contained in:
Benny Baumann
2020-11-22 00:59:00 +01:00
committed by Christian Göttsche
parent ddda739cb2
commit 03f9a86918
4 changed files with 10 additions and 16 deletions

View File

@ -47,10 +47,10 @@ static void ZfsArcMeter_updateValues(Meter* this, char* buffer, int size) {
}
static void ZfsArcMeter_display(const Object* cast, RichString* out) {
char buffer[50];
const Meter* this = (const Meter*)cast;
if (this->values[5] > 0) {
char buffer[50];
Meter_humanUnit(buffer, this->total, 50);
RichString_append(out, CRT_colors[METER_VALUE], buffer);
Meter_humanUnit(buffer, this->values[5], 50);