pidref: make signal sending calls take const PidRef
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
+3
-3
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user