Rename 'ucred' argument to mac_socket_check_bind() to 'cred' to match

other use of the same variable type.

Obtained from:	TrustedBSD Project
Sponsored by:	Google, Inc.
This commit is contained in:
Robert Watson 2009-03-08 12:22:00 +00:00
parent 6f6174a762
commit c14172e3ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189532

View File

@ -301,15 +301,15 @@ MAC_CHECK_PROBE_DEFINE3(socket_check_bind, "struct ucred *",
"struct socket *", "struct sockaddr *");
int
mac_socket_check_bind(struct ucred *ucred, struct socket *so,
mac_socket_check_bind(struct ucred *cred, struct socket *so,
struct sockaddr *sa)
{
int error;
SOCK_LOCK_ASSERT(so);
MAC_CHECK(socket_check_bind, ucred, so, so->so_label, sa);
MAC_CHECK_PROBE3(socket_check_bind, error, ucred, so, sa);
MAC_CHECK(socket_check_bind, cred, so, so->so_label, sa);
MAC_CHECK_PROBE3(socket_check_bind, error, cred, so, sa);
return (error);
}