summaryrefslogtreecommitdiffstats
path: root/ListItem.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-23 13:02:32 +0100
committerBenBE <BenBE@geshi.org>2021-01-02 00:00:17 +0100
commit90ea3ac3c9104d1519e067aeeefc07c7f75313ca (patch)
treee897b8842b495e736286e49aef20a674d14cc26a /ListItem.c
parent293c16e22da7fbda98eae1836f11e642fcbd699b (diff)
Object: return int on comparison
Comparisons do, due to the new introduced shaceship-comparisons, only return -1, 0, 1 or the result of strcmp().
Diffstat (limited to 'ListItem.c')
-rw-r--r--ListItem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ListItem.c b/ListItem.c
index 8d962aef..7ccf8d7a 100644
--- a/ListItem.c
+++ b/ListItem.c
@@ -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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy