diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-11-16 18:25:20 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-11-16 18:25:20 +0000 |
commit | f9ad21ec5da3fd402f2c089b84ffa97d9b2f4067 (patch) | |
tree | d4e8642846ae9dad1446e84ff41dea25cd39312b /sys/kern | |
parent | 6aa1ea6e6184a401064b96982902f1beb186ee79 (diff) | |
download | FreeBSD-src-f9ad21ec5da3fd402f2c089b84ffa97d9b2f4067.zip FreeBSD-src-f9ad21ec5da3fd402f2c089b84ffa97d9b2f4067.tar.gz |
Reduce gratuitous redundancy and length in function names:
mac_setsockopt_label_set() -> mac_setsockopt_label()
mac_getsockopt_label_get() -> mac_getsockopt_label()
mac_getsockopt_peerlabel_get() -> mac_getsockopt_peerlabel()
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_socket.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 84db1a9..4b924d5 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1452,10 +1452,8 @@ sosetopt(so, sopt) sizeof extmac); if (error) goto bad; - - error = mac_setsockopt_label_set( - sopt->sopt_td->td_ucred, so, &extmac); - + error = mac_setsockopt_label(sopt->sopt_td->td_ucred, + so, &extmac); #else error = EOPNOTSUPP; #endif @@ -1603,8 +1601,8 @@ integer: sizeof(extmac)); if (error) return (error); - error = mac_getsockopt_label_get( - sopt->sopt_td->td_ucred, so, &extmac); + error = mac_getsockopt_label(sopt->sopt_td->td_ucred, + so, &extmac); if (error) return (error); error = sooptcopyout(sopt, &extmac, sizeof extmac); @@ -1618,7 +1616,7 @@ integer: sizeof(extmac)); if (error) return (error); - error = mac_getsockopt_peerlabel_get( + error = mac_getsockopt_peerlabel( sopt->sopt_td->td_ucred, so, &extmac); if (error) return (error); |