Hold only a const version of Settings in ProcessList

This commit is contained in:
Christian Göttsche
2020-10-21 21:26:09 +02:00
committed by cgzones
parent 4eb443926f
commit a3bb7cbe64
8 changed files with 22 additions and 18 deletions

View File

@ -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;