summaryrefslogtreecommitdiffstats
path: root/solaris
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-07 19:02:15 +0200
committercgzones <cgzones@googlemail.com>2020-10-09 10:18:40 +0200
commit41eea8a355d9f8935c2bcb25b4da83cf628f357b (patch)
tree83cf9e3b334d12f5eabf987f08fafc073e194507 /solaris
parent7fa0f19ffdb65019791034f8ff4c9b73edb162b2 (diff)
Mark process argument of Process_isThread const
Diffstat (limited to 'solaris')
-rw-r--r--solaris/SolarisProcess.c4
-rw-r--r--solaris/SolarisProcess.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/solaris/SolarisProcess.c b/solaris/SolarisProcess.c
index d0a75dfe..b796c96e 100644
--- a/solaris/SolarisProcess.c
+++ b/solaris/SolarisProcess.c
@@ -150,8 +150,8 @@ long SolarisProcess_compare(const void* v1, const void* v2) {
}
}
-bool Process_isThread(Process* this) {
- SolarisProcess* fp = (SolarisProcess*) this;
+bool Process_isThread(const Process* this) {
+ const SolarisProcess* fp = (const SolarisProcess*) this;
if (fp->kernel == 1 ) {
return 1;
diff --git a/solaris/SolarisProcess.h b/solaris/SolarisProcess.h
index 6ae38331..2a32f8c7 100644
--- a/solaris/SolarisProcess.h
+++ b/solaris/SolarisProcess.h
@@ -58,6 +58,6 @@ void SolarisProcess_writeField(Process* this, RichString* str, ProcessField fiel
long SolarisProcess_compare(const void* v1, const void* v2);
-bool Process_isThread(Process* this);
+bool Process_isThread(const Process* this);
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy