pidref: make pidref_verify() parameter const

This commit is contained in:
Lennart Poettering
2023-10-18 10:32:03 +02:00
parent 820fe745c7
commit bd389293f0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)