diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-08 22:37:15 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-12-08 22:37:15 +0100 |
commit | 2d231d77ca2e36147a91fa061924fb0ea880b90f (patch) | |
tree | 474cc18e8d178a276394f3e4bf45b953518642d7 /Process.c | |
parent | f6613db5cdd04aa5e3f2ad3f19351a06a60808c5 (diff) |
Process: simplify
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) { |