diff options
author | Daniel Lange <DLange@git.local> | 2021-01-11 20:43:27 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-01-11 20:43:27 +0100 |
commit | c55320e9e2a8916e911bcd39ab37b79e3a7d03b2 (patch) | |
tree | d6be9a09fdf7d6dc155de3429a70697ee2bb43b0 /ListItem.c | |
parent | 65357c8c46154de4e4eca14075bfe5523bb5fc14 (diff) | |
download | debian_htop-c55320e9e2a8916e911bcd39ab37b79e3a7d03b2.tar.gz debian_htop-c55320e9e2a8916e911bcd39ab37b79e3a7d03b2.tar.bz2 debian_htop-c55320e9e2a8916e911bcd39ab37b79e3a7d03b2.zip |
New upstream version 3.0.5upstream/3.0.5
Diffstat (limited to 'ListItem.c')
-rw-r--r-- | ListItem.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -29,7 +29,7 @@ static void ListItem_display(const Object* cast, RichString* out) { assert (this != NULL); if (this->moving) { - RichString_write(out, CRT_colors[DEFAULT_COLOR], + RichString_writeWide(out, CRT_colors[DEFAULT_COLOR], #ifdef HAVE_LIBNCURSESW CRT_utf8 ? "↕ " : #endif @@ -37,7 +37,7 @@ static void ListItem_display(const Object* cast, RichString* out) { } else { RichString_prune(out); } - RichString_append(out, CRT_colors[DEFAULT_COLOR], this->value); + RichString_appendWide(out, CRT_colors[DEFAULT_COLOR], this->value); } ListItem* ListItem_new(const char* value, int key) { @@ -57,7 +57,7 @@ void ListItem_append(ListItem* this, const char* text) { this->value[newLen] = '\0'; } -static long ListItem_compare(const void* cast1, const void* cast2) { +static int ListItem_compare(const void* cast1, const void* cast2) { const ListItem* obj1 = (const ListItem*) cast1; const ListItem* obj2 = (const ListItem*) cast2; return strcmp(obj1->value, obj2->value); |