Fixes to use platform-specific compare routines.

This commit is contained in:
Hisham Muhammad
2015-04-09 15:40:27 -03:00
parent dc4576d327
commit b291fba02b
5 changed files with 22 additions and 12 deletions

View File

@ -45,7 +45,7 @@ static int pageSizeKb;
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId) {
FreeBSDProcessList* fpl = calloc(1, sizeof(FreeBSDProcessList));
ProcessList* pl = (ProcessList*) fpl;
ProcessList_init(pl, usersTable, pidWhiteList, userId);
ProcessList_init(pl, Class(FreeBSDProcess), usersTable, pidWhiteList, userId);
int cpus = 1;
size_t sizeof_cpus = sizeof(cpus);