summaryrefslogtreecommitdiffstats
path: root/dragonflybsd
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-27 15:12:06 +0100
committerBenBE <BenBE@geshi.org>2021-01-30 14:21:26 +0100
commit69efa94f9f44e00cea3e2d68a83717c0632d68fa (patch)
tree36b720f78ed31df30f3cff60ca278162a4f5bd65 /dragonflybsd
parent04cf590967c7563972f89f02fd6fa52e13b9e9d9 (diff)
Use String_eq wrapper instead of raw strcmp
Diffstat (limited to 'dragonflybsd')
-rw-r--r--dragonflybsd/DragonFlyBSDProcessList.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dragonflybsd/DragonFlyBSDProcessList.c b/dragonflybsd/DragonFlyBSDProcessList.c
index edf2c863..976dbea0 100644
--- a/dragonflybsd/DragonFlyBSDProcessList.c
+++ b/dragonflybsd/DragonFlyBSDProcessList.c
@@ -434,7 +434,7 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
if (proc->percent_cpu > 0.1) {
// system idle process should own all CPU time left regardless of CPU count
- if ( strcmp("idle", kproc->kp_comm) == 0 ) {
+ if (String_eq("idle", kproc->kp_comm)) {
isIdleProcess = true;
}
}

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