mirror of https://github.com/xzeldon/htop.git
Build fix for NetBSD
This commit is contained in:
parent
ce27f8379d
commit
68123adb6f
|
@ -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 };
|
||||
size_t size;
|
||||
char errbuf[_POSIX2_LINE_MAX];
|
||||
|
||||
NetBSDProcessList* npl = xCalloc(1, sizeof(NetBSDProcessList));
|
||||
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);
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ typedef struct 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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue