summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-04-09 15:40:27 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-04-09 15:40:46 -0300
commitb291fba02b8d9bb52cd8a23ef5fffbba4f89ff0a (patch)
tree9ed44e15202cd6a8d1e5191c537e61f3101931bb /ProcessList.c
parentdc4576d327b6953e38ea21fc9ef0898640d65d99 (diff)
Fixes to use platform-specific compare routines.
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 0e7d5262..050b74fa 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -74,15 +74,15 @@ void ProcessList_goThroughEntries(ProcessList* pl);
}*/
-ProcessList* ProcessList_init(ProcessList* this, UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId) {
- this->processes = Vector_new(Class(Process), true, DEFAULT_SIZE);
+ProcessList* ProcessList_init(ProcessList* this, ObjectClass* klass, UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId) {
+ this->processes = Vector_new(klass, true, DEFAULT_SIZE);
this->processTable = Hashtable_new(140, false);
this->usersTable = usersTable;
this->pidWhiteList = pidWhiteList;
this->userId = userId;
- // tree-view auxiliary buffers
- this->processes2 = Vector_new(Class(Process), true, DEFAULT_SIZE);
+ // tree-view auxiliary buffer
+ this->processes2 = Vector_new(klass, true, DEFAULT_SIZE);
// set later by platform-specific code
this->cpuCount = 0;

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