DarwinProcess: mark local function static and sort includes

This commit is contained in:
Christian Göttsche
2020-11-17 19:41:22 +01:00
committed by cgzones
parent b3b890f546
commit ba2d59020d
2 changed files with 11 additions and 13 deletions

View File

@ -7,11 +7,12 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
#include "Settings.h"
#include "DarwinProcessList.h"
#include <sys/sysctl.h>
#include "DarwinProcessList.h"
#include "Settings.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);