pidref: make pidref_verify() parameter const
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user