summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-27 21:26:28 +0100
committercgzones <cgzones@googlemail.com>2020-10-28 19:57:10 +0100
commit61bae4c9d27f23b3ebda461a922ae76e63e0a9c2 (patch)
treeb46ea5fcd2ccd034059853c45eefbd48605780b1 /openbsd
parentcf1a9ec18096029d0fa4635027622a63bcaa82df (diff)
Unify function argument names
Name first argument of ProcessList_goThroughEntries consistently super Name first argument of ProcessList_new consistently userTable
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/OpenBSDProcessList.c6
-rw-r--r--openbsd/OpenBSDProcessList.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/openbsd/OpenBSDProcessList.c b/openbsd/OpenBSDProcessList.c
index 320b693b..86e2dca6 100644
--- a/openbsd/OpenBSDProcessList.c
+++ b/openbsd/OpenBSDProcessList.c
@@ -340,10 +340,10 @@ static void OpenBSDProcessList_scanCPUTime(OpenBSDProcessList* this) {
kernelCPUTimesToHtop(avg, this->cpus);
}
-void ProcessList_goThroughEntries(ProcessList* this, bool pauseProcessUpdate) {
- OpenBSDProcessList* opl = (OpenBSDProcessList*) this;
+void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
+ OpenBSDProcessList* opl = (OpenBSDProcessList*) super;
- OpenBSDProcessList_scanMemoryInfo(this);
+ OpenBSDProcessList_scanMemoryInfo(super);
OpenBSDProcessList_scanCPUTime(opl);
// in pause mode only gather global data for meters (CPU/memory/...)
diff --git a/openbsd/OpenBSDProcessList.h b/openbsd/OpenBSDProcessList.h
index 3c3f1a33..7ee48c63 100644
--- a/openbsd/OpenBSDProcessList.h
+++ b/openbsd/OpenBSDProcessList.h
@@ -45,6 +45,6 @@ void ProcessList_delete(ProcessList* this);
char *OpenBSDProcessList_readProcessName(kvm_t* kd, struct kinfo_proc* kproc, int* basenameEnd);
-void ProcessList_goThroughEntries(ProcessList* this, bool pauseProcessUpdate);
+void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate);
#endif

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