diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-21 21:26:05 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-26 19:30:38 +0100 |
commit | 4eb443926f9944f4c100b1aabfb5553cbbd98874 (patch) | |
tree | 96f71b219565cc36a98e447aebfe5ae46b94ec49 /solaris/SolarisProcess.c | |
parent | 71091724319c85574f5dbb11230ef5fe463f12fd (diff) |
Hold only a const version of Settings in Process
Diffstat (limited to 'solaris/SolarisProcess.c')
-rw-r--r-- | solaris/SolarisProcess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solaris/SolarisProcess.c b/solaris/SolarisProcess.c index 13652bd3..9c6c7d77 100644 --- a/solaris/SolarisProcess.c +++ b/solaris/SolarisProcess.c @@ -79,11 +79,11 @@ ProcessPidColumn Process_pidColumns[] = { { .id = 0, .label = NULL }, }; -SolarisProcess* SolarisProcess_new(Settings* settings) { +Process* SolarisProcess_new(const Settings* settings) { SolarisProcess* this = xCalloc(1, sizeof(SolarisProcess)); Object_setClass(this, Class(SolarisProcess)); Process_init(&this->super, settings); - return this; + return &this->super; } void Process_delete(Object* cast) { |