From 41eea8a355d9f8935c2bcb25b4da83cf628f357b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 7 Oct 2020 19:02:15 +0200 Subject: Mark process argument of Process_isThread const --- linux/LinuxProcess.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/LinuxProcess.h') diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h index c1eb0ed5..9227dd7f 100644 --- a/linux/LinuxProcess.h +++ b/linux/LinuxProcess.h @@ -147,7 +147,7 @@ typedef struct LinuxProcess_ { char *secattr; } LinuxProcess; -#define Process_isKernelThread(_process) (((LinuxProcess*)(_process))->isKernelThread) +#define Process_isKernelThread(_process) (((const LinuxProcess*)(_process))->isKernelThread) #define Process_isUserlandThread(_process) (_process->pid != _process->tgid) @@ -185,6 +185,6 @@ void LinuxProcess_writeField(Process* this, RichString* str, ProcessField field) long LinuxProcess_compare(const void* v1, const void* v2); -bool Process_isThread(Process* this); +bool Process_isThread(const Process* this); #endif -- cgit v1.2.3