diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-07 19:02:15 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-09 10:18:40 +0200 |
commit | 41eea8a355d9f8935c2bcb25b4da83cf628f357b (patch) | |
tree | 83cf9e3b334d12f5eabf987f08fafc073e194507 /linux/LinuxProcess.h | |
parent | 7fa0f19ffdb65019791034f8ff4c9b73edb162b2 (diff) |
Mark process argument of Process_isThread const
Diffstat (limited to 'linux/LinuxProcess.h')
-rw-r--r-- | linux/LinuxProcess.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |