DragonFlyBSD update

- move some functions to file scope
- drop unused global variable
This commit is contained in:
Christian Göttsche
2020-12-20 18:32:04 +01:00
parent 8db8b9edac
commit 9a86577cf2
4 changed files with 18 additions and 28 deletions

View File

@ -17,8 +17,6 @@ in the source distribution for its full text.
#include "Hashtable.h"
#include "DragonFlyBSDProcess.h"
#define JAIL_ERRMSGLEN 1024
extern char jail_errmsg[JAIL_ERRMSGLEN];
typedef struct CPUData_ {
double userPercent;
@ -53,10 +51,6 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui
void ProcessList_delete(ProcessList* this);
char* DragonFlyBSDProcessList_readProcessName(kvm_t* kd, struct kinfo_proc* kproc, int* basenameEnd);
char* DragonFlyBSDProcessList_readJailName(DragonFlyBSDProcessList* dfpl, int jailid);
void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate);
#endif