mirror of
https://github.com/systemd/systemd.git
synced 2025-03-10 16:58:28 +03:00
pidref: make pidref_verify() parameter const
This commit is contained in:
parent
820fe745c7
commit
bd389293f0
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user