pidref: make signal sending calls take const PidRef

This commit is contained in:
Lennart Poettering 2023-10-18 14:38:07 +02:00
parent bd389293f0
commit 44c55e5a3f
2 changed files with 6 additions and 6 deletions

View file

@ -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;

View file

@ -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);