From bd389293f00df85a702102514f120eda9d612b05 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 18 Oct 2023 10:26:11 +0200 Subject: [PATCH] pidref: make pidref_verify() parameter const --- src/basic/pidref.c | 2 +- src/basic/pidref.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic/pidref.c b/src/basic/pidref.c index a9fbbf2c90..e662f62af6 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 b0427923e9..e1fdac2700 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) -- 2.25.1