diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-23 13:02:32 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-01-02 00:00:17 +0100 |
commit | 90ea3ac3c9104d1519e067aeeefc07c7f75313ca (patch) | |
tree | e897b8842b495e736286e49aef20a674d14cc26a /ProcessList.c | |
parent | 293c16e22da7fbda98eae1836f11e642fcbd699b (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 'ProcessList.c')
-rw-r--r-- | ProcessList.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ProcessList.c b/ProcessList.c index d0bd89fe..9709f3c1 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -348,14 +348,14 @@ static void ProcessList_buildTreeBranch(ProcessList* this, pid_t pid, int level, Vector_delete(children); } -static long ProcessList_treeProcessCompare(const void* v1, const void* v2) { +static int ProcessList_treeProcessCompare(const void* v1, const void* v2) { const Process *p1 = (const Process*)v1; const Process *p2 = (const Process*)v2; return SPACESHIP_NUMBER(p1->tree_left, p2->tree_left); } -static long ProcessList_treeProcessCompareByPID(const void* v1, const void* v2) { +static int ProcessList_treeProcessCompareByPID(const void* v1, const void* v2) { const Process *p1 = (const Process*)v1; const Process *p2 = (const Process*)v2; |