summaryrefslogtreecommitdiffstats
path: root/solaris/SolarisProcess.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-12-18 22:12:26 +0100
committerBenBE <BenBE@geshi.org>2020-12-19 16:02:34 +0100
commit77db240b4851a5c739ff48de9d383707dcbfc490 (patch)
tree4351fe69c53716241d6d61653fc9c217556f220e /solaris/SolarisProcess.c
parent2327260ee888146beab3da66507c7744334a6973 (diff)
Split boilerplate and platform-independent field comparison
This acheives two things: - Allows for simple tie-breaking if values compare equal (needed to make sorting the tree-view stable) - Allows for platform-dependent overriding of the sort-order for specific fields Also fixes a small oversight on DragonFlyBSD when default-sorting.
Diffstat (limited to 'solaris/SolarisProcess.c')
-rw-r--r--solaris/SolarisProcess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/solaris/SolarisProcess.c b/solaris/SolarisProcess.c
index e6c49936..f6470a3c 100644
--- a/solaris/SolarisProcess.c
+++ b/solaris/SolarisProcess.c
@@ -142,7 +142,7 @@ long SolarisProcess_compareByKey(const void* v1, const void* v2, ProcessField ke
case LWPID:
return SPACESHIP_NUMBER(p1->lwpid, p2->lwpid);
default:
- return SPACESHIP_NUMBER(v1->pid, v2->pid);
+ return Process_compareByKey_Base(v1, v2, key);
}
}

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