diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-11-17 19:41:22 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-11-17 21:50:38 +0100 |
commit | ba2d59020d7b57ecc5a955f0a8e3e7e5c2a2963d (patch) | |
tree | 49453ea52091b20e640608dc40ba552925cf6a64 /darwin/DarwinProcess.h | |
parent | b3b890f546e5054b4d9222c8efcef3a425a152ab (diff) |
DarwinProcess: mark local function static and sort includes
Diffstat (limited to 'darwin/DarwinProcess.h')
-rw-r--r-- | darwin/DarwinProcess.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/darwin/DarwinProcess.h b/darwin/DarwinProcess.h index 627a6bcb..98897c93 100644 --- a/darwin/DarwinProcess.h +++ b/darwin/DarwinProcess.h @@ -7,10 +7,11 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#include "Settings.h" +#include <sys/sysctl.h> + #include "DarwinProcessList.h" +#include "Settings.h" -#include <sys/sysctl.h> typedef struct DarwinProcess_ { Process super; @@ -28,9 +29,7 @@ void Process_delete(Object* cast); bool Process_isThread(const Process* this); -char* DarwinProcess_getCmdLine(struct kinfo_proc* k, int* basenameOffset); - -void DarwinProcess_setFromKInfoProc(Process* proc, struct kinfo_proc* ps, bool exists); +void DarwinProcess_setFromKInfoProc(Process* proc, const struct kinfo_proc* ps, bool exists); void DarwinProcess_setFromLibprocPidinfo(DarwinProcess* proc, DarwinProcessList* dpl); |