Object: return int on comparison

Comparisons do, due to the new introduced shaceship-comparisons,
only return -1, 0, 1 or the result of strcmp().
This commit is contained in:
Christian Göttsche
2020-12-23 13:02:32 +01:00
committed by BenBE
parent 293c16e22d
commit 90ea3ac3c9
11 changed files with 18 additions and 18 deletions

View File

@ -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;