diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-27 11:46:29 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-27 18:00:43 +0100 |
commit | ac2b07eddd6f0b7c41b84b71653ca90fd301085f (patch) | |
tree | 0877120c0d42eed27a7f3d29a9fe79803cdd141f /linux/LinuxProcess.c | |
parent | 27870bd4deceff8396bbc569927716773b1aea29 (diff) |
Avoid some unnecessary casts and mark some not changing variables const
Diffstat (limited to 'linux/LinuxProcess.c')
-rw-r--r-- | linux/LinuxProcess.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index 23783ef0..fad80555 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -179,12 +179,12 @@ IOPriority LinuxProcess_updateIOPriority(LinuxProcess* this) { return ioprio; } -bool LinuxProcess_setIOPriority(LinuxProcess* this, Arg ioprio) { +bool LinuxProcess_setIOPriority(Process* this, Arg ioprio) { // Other OSes masquerading as Linux (NetBSD?) don't have this syscall #ifdef SYS_ioprio_set - syscall(SYS_ioprio_set, IOPRIO_WHO_PROCESS, this->super.pid, ioprio.i); + syscall(SYS_ioprio_set, IOPRIO_WHO_PROCESS, this->pid, ioprio.i); #endif - return (LinuxProcess_updateIOPriority(this) == ioprio.i); + return (LinuxProcess_updateIOPriority((LinuxProcess*)this) == ioprio.i); } #ifdef HAVE_DELAYACCT |