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 /linux/LinuxProcess.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 'linux/LinuxProcess.c')
-rw-r--r-- | linux/LinuxProcess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index 3ee9d2c6..a45505e2 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -748,7 +748,7 @@ static void LinuxProcess_writeField(const Process* this, RichString* str, Proces RichString_appendWide(str, attr, buffer); } -static long LinuxProcess_compareByKey(const Process* v1, const Process* v2, ProcessField key) { +static int LinuxProcess_compareByKey(const Process* v1, const Process* v2, ProcessField key) { const LinuxProcess* p1 = (const LinuxProcess*)v1; const LinuxProcess* p2 = (const LinuxProcess*)v2; |