summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-21 21:26:09 +0200
committercgzones <cgzones@googlemail.com>2020-10-26 19:30:38 +0100
commita3bb7cbe649d9c718b65aded4c6b2445ff5d20d5 (patch)
tree0777ed5bf2fe322227fe114cd1126ab77bc8ccf1 /openbsd
parent4eb443926f9944f4c100b1aabfb5553cbbd98874 (diff)
Hold only a const version of Settings in ProcessList
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/OpenBSDProcessList.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd/OpenBSDProcessList.c b/openbsd/OpenBSDProcessList.c
index 693ec9db..320b693b 100644
--- a/openbsd/OpenBSDProcessList.c
+++ b/openbsd/OpenBSDProcessList.c
@@ -185,7 +185,7 @@ static double getpcpu(const struct kinfo_proc *kp) {
}
static inline void OpenBSDProcessList_scanProcs(OpenBSDProcessList* this) {
- Settings* settings = this->super.settings;
+ const Settings* settings = this->super.settings;
bool hideKernelThreads = settings->hideKernelThreads;
bool hideUserlandThreads = settings->hideUserlandThreads;
struct kinfo_proc* kproc;

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