summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-08 22:37:15 +0100
committerChristian Göttsche <cgzones@googlemail.com>2020-12-08 22:37:15 +0100
commit2d231d77ca2e36147a91fa061924fb0ea880b90f (patch)
tree474cc18e8d178a276394f3e4bf45b953518642d7 /Process.c
parentf6613db5cdd04aa5e3f2ad3f19351a06a60808c5 (diff)
Process: simplify
Diffstat (limited to 'Process.c')
-rw-r--r--Process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Process.c b/Process.c
index 170e1486..544358ee 100644
--- a/Process.c
+++ b/Process.c
@@ -448,7 +448,7 @@ void Process_init(Process* this, const struct Settings_* settings) {
}
void Process_toggleTag(Process* this) {
- this->tag = this->tag == true ? false : true;
+ this->tag = !this->tag;
}
bool Process_isNew(const Process* this) {
@@ -488,7 +488,8 @@ bool Process_sendSignal(Process* this, Arg sgn) {
long Process_pidCompare(const void* v1, const void* v2) {
const Process* p1 = (const Process*)v1;
const Process* p2 = (const Process*)v2;
- return (p1->pid - p2->pid);
+
+ return SPACESHIP_NUMBER(p1->pid, p2->pid);
}
long Process_compare(const void* v1, const void* v2) {

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