Build fix for NetBSD

This commit is contained in:
fraggerfox 2021-08-16 07:45:04 +02:00 committed by Benny Baumann
parent ce27f8379d
commit 68123adb6f
2 changed files with 3 additions and 3 deletions

View File

@ -103,14 +103,14 @@ static void NetBSDProcessList_updateCPUcount(ProcessList* super) {
} }
} }
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* pidMatchList, uid_t userId) { ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* dynamicColumns, Hashtable* pidMatchList, uid_t userId) {
const int fmib[] = { CTL_KERN, KERN_FSCALE }; const int fmib[] = { CTL_KERN, KERN_FSCALE };
size_t size; size_t size;
char errbuf[_POSIX2_LINE_MAX]; char errbuf[_POSIX2_LINE_MAX];
NetBSDProcessList* npl = xCalloc(1, sizeof(NetBSDProcessList)); NetBSDProcessList* npl = xCalloc(1, sizeof(NetBSDProcessList));
ProcessList* pl = (ProcessList*) npl; ProcessList* pl = (ProcessList*) npl;
ProcessList_init(pl, Class(NetBSDProcess), usersTable, dynamicMeters, pidMatchList, userId); ProcessList_init(pl, Class(NetBSDProcess), usersTable, dynamicMeters, dynamicColumns, pidMatchList, userId);
NetBSDProcessList_updateCPUcount(pl); NetBSDProcessList_updateCPUcount(pl);

View File

@ -49,7 +49,7 @@ typedef struct NetBSDProcessList_ {
} NetBSDProcessList; } NetBSDProcessList;
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* pidMatchList, uid_t userId); ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* dynamicColumns, Hashtable* pidMatchList, uid_t userId);
void ProcessList_delete(ProcessList* this); void ProcessList_delete(ProcessList* this);