mirror of
https://github.com/systemd/systemd
synced 2024-11-02 19:41:12 +00:00
pidref: make signal sending calls take const PidRef
This commit is contained in:
parent
bd389293f0
commit
44c55e5a3f
2 changed files with 6 additions and 6 deletions
|
@ -186,7 +186,7 @@ int pidref_new_from_pid(pid_t pid, PidRef **ret) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int pidref_kill(PidRef *pidref, int sig) {
|
||||
int pidref_kill(const PidRef *pidref, int sig) {
|
||||
|
||||
if (!pidref)
|
||||
return -ESRCH;
|
||||
|
@ -200,7 +200,7 @@ int pidref_kill(PidRef *pidref, int sig) {
|
|||
return -ESRCH;
|
||||
}
|
||||
|
||||
int pidref_kill_and_sigcont(PidRef *pidref, int sig) {
|
||||
int pidref_kill_and_sigcont(const PidRef *pidref, int sig) {
|
||||
int r;
|
||||
|
||||
r = pidref_kill(pidref, sig);
|
||||
|
@ -213,7 +213,7 @@ int pidref_kill_and_sigcont(PidRef *pidref, int sig) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int pidref_sigqueue(PidRef *pidref, int sig, int value) {
|
||||
int pidref_sigqueue(const PidRef *pidref, int sig, int value) {
|
||||
|
||||
if (!pidref)
|
||||
return -ESRCH;
|
||||
|
|
|
@ -51,9 +51,9 @@ int pidref_dup(const PidRef *pidref, PidRef **ret);
|
|||
|
||||
int pidref_new_from_pid(pid_t pid, PidRef **ret);
|
||||
|
||||
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_kill(const PidRef *pidref, int sig);
|
||||
int pidref_kill_and_sigcont(const PidRef *pidref, int sig);
|
||||
int pidref_sigqueue(const PidRef *pidfref, int sig, int value);
|
||||
|
||||
int pidref_verify(const PidRef *pidref);
|
||||
|
||||
|
|
Loading…
Reference in a new issue