From: Lennart Poettering Date: Wed, 18 Oct 2023 08:26:11 +0000 (+0200) Subject: pidref: make pidref_verify() parameter const X-Git-Tag: v255-rc1~209^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd389293f00df85a702102514f120eda9d612b05;p=thirdparty%2Fsystemd.git pidref: make pidref_verify() parameter const --- diff --git a/src/basic/pidref.c b/src/basic/pidref.c index a9fbbf2c906..e662f62af6d 100644 --- a/src/basic/pidref.c +++ b/src/basic/pidref.c @@ -240,7 +240,7 @@ int pidref_sigqueue(PidRef *pidref, int sig, int value) { return -ESRCH; } -int pidref_verify(PidRef *pidref) { +int pidref_verify(const PidRef *pidref) { int r; /* This is a helper that is supposed to be called after reading information from procfs via a diff --git a/src/basic/pidref.h b/src/basic/pidref.h index b0427923e94..e1fdac27005 100644 --- a/src/basic/pidref.h +++ b/src/basic/pidref.h @@ -55,7 +55,7 @@ int pidref_kill(PidRef *pidref, int sig); int pidref_kill_and_sigcont(PidRef *pidref, int sig); int pidref_sigqueue(PidRef *pidfref, int sig, int value); -int pidref_verify(PidRef *pidref); +int pidref_verify(const PidRef *pidref); #define TAKE_PIDREF(p) TAKE_GENERIC((p), PidRef, PIDREF_NULL)