From 89473cc9ae950bbb5e291d1f186d372f66f66394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 15 Dec 2020 19:44:48 +0100 Subject: Rework enum ProcessField Use only one enum instead of a global and a platform specific one. Drop Platform_numberOfFields global variable. Set known size of Process_fields array --- Process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Process.c') diff --git a/Process.c b/Process.c index b1412d95..2b39a2ab 100644 --- a/Process.c +++ b/Process.c @@ -518,7 +518,7 @@ long Process_compare(const void* v1, const void* v2) { long Process_compareByKey_Base(const Process* p1, const Process* p2, ProcessField key) { int r; - switch ((int) key) { + switch (key) { case PERCENT_CPU: case PERCENT_NORM_CPU: return SPACESHIP_NUMBER(p2->percent_cpu, p1->percent_cpu); -- cgit v1.2.3