Trim extraneous #else and #endif MAC comments per style(9).
This commit is contained in:
parent
bea9f656ab
commit
23cda0df02
@ -1265,7 +1265,7 @@ sosetopt(so, sopt)
|
||||
u_long val;
|
||||
#ifdef MAC
|
||||
struct mac extmac;
|
||||
#endif /* MAC */
|
||||
#endif
|
||||
|
||||
error = 0;
|
||||
if (sopt->sopt_level != SOL_SOCKET) {
|
||||
@ -1400,9 +1400,9 @@ sosetopt(so, sopt)
|
||||
error = mac_setsockopt_label_set(
|
||||
sopt->sopt_td->td_ucred, so, &extmac);
|
||||
|
||||
#else /* MAC */
|
||||
#else
|
||||
error = EOPNOTSUPP;
|
||||
#endif /* MAC */
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
error = ENOPROTOOPT;
|
||||
@ -1462,7 +1462,7 @@ sogetopt(so, sopt)
|
||||
#endif
|
||||
#ifdef MAC
|
||||
struct mac extmac;
|
||||
#endif /* MAC */
|
||||
#endif
|
||||
|
||||
error = 0;
|
||||
if (sopt->sopt_level != SOL_SOCKET) {
|
||||
@ -1551,9 +1551,9 @@ sogetopt(so, sopt)
|
||||
if (error)
|
||||
return (error);
|
||||
error = sooptcopyout(sopt, &extmac, sizeof extmac);
|
||||
#else /* MAC */
|
||||
#else
|
||||
error = EOPNOTSUPP;
|
||||
#endif /* MAC */
|
||||
#endif
|
||||
break;
|
||||
case SO_PEERLABEL:
|
||||
#ifdef MAC
|
||||
@ -1562,9 +1562,9 @@ sogetopt(so, sopt)
|
||||
if (error)
|
||||
return (error);
|
||||
error = sooptcopyout(sopt, &extmac, sizeof extmac);
|
||||
#else /* MAC */
|
||||
#else
|
||||
error = EOPNOTSUPP;
|
||||
#endif /* MAC */
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
error = ENOPROTOOPT;
|
||||
|
@ -644,7 +644,7 @@ unp_bind(unp, nam, td)
|
||||
#ifdef MAC
|
||||
error = mac_check_vnode_create(td->td_ucred, nd.ni_dvp, &nd.ni_cnd,
|
||||
&vattr);
|
||||
#endif /* MAC */
|
||||
#endif
|
||||
if (error == 0) {
|
||||
VOP_LEASE(nd.ni_dvp, td, td->td_ucred, LEASE_WRITE);
|
||||
error = VOP_CREATE(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr);
|
||||
|
Loading…
Reference in New Issue
Block a user