summaryrefslogtreecommitdiffstats
path: root/dragonflybsd/DragonFlyBSDProcess.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-21 21:26:05 +0200
committercgzones <cgzones@googlemail.com>2020-10-26 19:30:38 +0100
commit4eb443926f9944f4c100b1aabfb5553cbbd98874 (patch)
tree96f71b219565cc36a98e447aebfe5ae46b94ec49 /dragonflybsd/DragonFlyBSDProcess.c
parent71091724319c85574f5dbb11230ef5fe463f12fd (diff)
Hold only a const version of Settings in Process
Diffstat (limited to 'dragonflybsd/DragonFlyBSDProcess.c')
-rw-r--r--dragonflybsd/DragonFlyBSDProcess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dragonflybsd/DragonFlyBSDProcess.c b/dragonflybsd/DragonFlyBSDProcess.c
index 517fc2a1..6650cb7e 100644
--- a/dragonflybsd/DragonFlyBSDProcess.c
+++ b/dragonflybsd/DragonFlyBSDProcess.c
@@ -69,11 +69,11 @@ ProcessPidColumn Process_pidColumns[] = {
{ .id = 0, .label = NULL },
};
-DragonFlyBSDProcess* DragonFlyBSDProcess_new(Settings* settings) {
+Process* DragonFlyBSDProcess_new(const Settings* settings) {
DragonFlyBSDProcess* this = xCalloc(1, sizeof(DragonFlyBSDProcess));
Object_setClass(this, Class(DragonFlyBSDProcess));
Process_init(&this->super, settings);
- return this;
+ return &this->super;
}
void Process_delete(Object* cast) {

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