o Capabilities cap_check() interface revised to remove _xxx, so rename

in p_cansched().  Also, replace '0' with 'NULL' for the ucred * pointer.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2001-11-02 15:08:08 +00:00
parent 62ec3f2fb0
commit 4df571b101

View File

@ -1502,7 +1502,7 @@ p_cansched(struct proc *p1, struct proc *p2)
return (0);
#ifdef CAPABILITIES
if (!cap_check_xxx(0, p1, CAP_SYS_NICE, PRISON_ROOT))
if (!cap_check(NULL, p1, CAP_SYS_NICE, PRISON_ROOT))
return (0);
#endif