diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:18 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:18 +0200 |
commit | 2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (patch) | |
tree | afaa05858260763c1d25fa092f3905cf51ffd7b2 /ClockMeter.c | |
parent | 031c3bb95f3d0a74d985286068baa6dd4d29d83f (diff) | |
download | debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.tar.gz debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.tar.bz2 debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.zip |
Imported Upstream version 0.5.4upstream/0.5.4
Diffstat (limited to 'ClockMeter.c')
-rw-r--r-- | ClockMeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ClockMeter.c b/ClockMeter.c index 645910c..9469a35 100644 --- a/ClockMeter.c +++ b/ClockMeter.c @@ -30,7 +30,7 @@ struct ClockMeter_ { ClockMeter* ClockMeter_new() { ClockMeter* this = malloc(sizeof(ClockMeter)); Meter_init((Meter*)this, String_copy("Clock"), String_copy("Time: "), 1); - ((Meter*)this)->attributes[0] = CRT_colors[CLOCK]; + ((Meter*)this)->attributes[0] = &(CRT_colors[CLOCK]); ((Meter*)this)->setValues = ClockMeter_setValues; ((Object*)this)->display = ClockMeter_display; ((Meter*)this)->total = 24 * 60; @@ -50,5 +50,5 @@ void ClockMeter_setValues(Meter* cast) { void ClockMeter_display(Object* cast, RichString* out) { Meter* super = (Meter*) cast; ClockMeter* this = (ClockMeter*) cast; - RichString_write(out, super->attributes[0], this->clock); + RichString_write(out, *(super->attributes[0]), this->clock); } |