From b6bad806514e2e92c0c1e3b7ce10c132ef10f499 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sun, 8 Mar 2009 12:22:00 +0000 Subject: [PATCH] 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. --- sys/security/mac/mac_socket.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/security/mac/mac_socket.c b/sys/security/mac/mac_socket.c index fa4a9709a3ef..e73ce12e45b5 100644 --- a/sys/security/mac/mac_socket.c +++ b/sys/security/mac/mac_socket.c @@ -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); }