summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-11-16 18:25:20 +0000
committerrwatson <rwatson@FreeBSD.org>2003-11-16 18:25:20 +0000
commitf9ad21ec5da3fd402f2c089b84ffa97d9b2f4067 (patch)
treed4e8642846ae9dad1446e84ff41dea25cd39312b /sys/kern
parent6aa1ea6e6184a401064b96982902f1beb186ee79 (diff)
downloadFreeBSD-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.c12
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);
OpenPOWER on IntegriCloud