Cleanup, no functional change intended.
This file is only compiled if INET or INET6 is defined. So there is no need for checking that. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D25635
This commit is contained in:
parent
cdb9318eed
commit
cd7518203d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363133
@ -32,8 +32,6 @@
|
|||||||
__FBSDID("$FreeBSD$");
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
#include "opt_capsicum.h"
|
#include "opt_capsicum.h"
|
||||||
#include "opt_inet.h"
|
|
||||||
#include "opt_inet6.h"
|
|
||||||
#include "opt_sctp.h"
|
#include "opt_sctp.h"
|
||||||
#include "opt_ktrace.h"
|
#include "opt_ktrace.h"
|
||||||
|
|
||||||
@ -139,8 +137,6 @@ sctp_syscalls_uninit(void)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* SCTP syscalls.
|
* SCTP syscalls.
|
||||||
* Functionality only compiled in if SCTP is defined in the kernel Makefile,
|
|
||||||
* otherwise all return EOPNOTSUPP.
|
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
sys_sctp_peeloff(td, uap)
|
sys_sctp_peeloff(td, uap)
|
||||||
@ -150,7 +146,6 @@ sys_sctp_peeloff(td, uap)
|
|||||||
caddr_t name;
|
caddr_t name;
|
||||||
} */ *uap;
|
} */ *uap;
|
||||||
{
|
{
|
||||||
#if defined(INET) || defined(INET6)
|
|
||||||
struct file *headfp, *nfp = NULL;
|
struct file *headfp, *nfp = NULL;
|
||||||
struct socket *head, *so;
|
struct socket *head, *so;
|
||||||
cap_rights_t rights;
|
cap_rights_t rights;
|
||||||
@ -212,7 +207,6 @@ sys_sctp_peeloff(td, uap)
|
|||||||
fdrop(headfp, td);
|
fdrop(headfp, td);
|
||||||
done2:
|
done2:
|
||||||
return (error);
|
return (error);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -228,7 +222,6 @@ sys_sctp_generic_sendmsg (td, uap)
|
|||||||
int flags
|
int flags
|
||||||
} */ *uap;
|
} */ *uap;
|
||||||
{
|
{
|
||||||
#if defined(INET) || defined(INET6)
|
|
||||||
struct sctp_sndrcvinfo sinfo, *u_sinfo = NULL;
|
struct sctp_sndrcvinfo sinfo, *u_sinfo = NULL;
|
||||||
struct socket *so;
|
struct socket *so;
|
||||||
struct file *fp = NULL;
|
struct file *fp = NULL;
|
||||||
@ -323,7 +316,6 @@ sys_sctp_generic_sendmsg (td, uap)
|
|||||||
sctp_bad2:
|
sctp_bad2:
|
||||||
free(to, M_SONAME);
|
free(to, M_SONAME);
|
||||||
return (error);
|
return (error);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -339,7 +331,6 @@ sys_sctp_generic_sendmsg_iov(td, uap)
|
|||||||
int flags
|
int flags
|
||||||
} */ *uap;
|
} */ *uap;
|
||||||
{
|
{
|
||||||
#if defined(INET) || defined(INET6)
|
|
||||||
struct sctp_sndrcvinfo sinfo, *u_sinfo = NULL;
|
struct sctp_sndrcvinfo sinfo, *u_sinfo = NULL;
|
||||||
struct socket *so;
|
struct socket *so;
|
||||||
struct file *fp = NULL;
|
struct file *fp = NULL;
|
||||||
@ -451,7 +442,6 @@ sys_sctp_generic_sendmsg_iov(td, uap)
|
|||||||
sctp_bad2:
|
sctp_bad2:
|
||||||
free(to, M_SONAME);
|
free(to, M_SONAME);
|
||||||
return (error);
|
return (error);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -467,7 +457,6 @@ sys_sctp_generic_recvmsg(td, uap)
|
|||||||
int *msg_flags
|
int *msg_flags
|
||||||
} */ *uap;
|
} */ *uap;
|
||||||
{
|
{
|
||||||
#if defined(INET) || defined(INET6)
|
|
||||||
uint8_t sockbufstore[256];
|
uint8_t sockbufstore[256];
|
||||||
struct uio auio;
|
struct uio auio;
|
||||||
struct iovec *iov, *tiov;
|
struct iovec *iov, *tiov;
|
||||||
@ -597,5 +586,4 @@ sys_sctp_generic_recvmsg(td, uap)
|
|||||||
fdrop(fp, td);
|
fdrop(fp, td);
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user