aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/protosw.h
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2006-07-11 23:18:28 +0000
committerRobert Watson <rwatson@FreeBSD.org>2006-07-11 23:18:28 +0000
commit5908c617bbf061c09a80baa04474a6a5c0728751 (patch)
tree929b63820e4c3cfe7ce25a1c573b885f1b5ce22d /sys/sys/protosw.h
parentf949ae9b310437402b791fb9e2d92d1eb4828696 (diff)
downloadsrc-5908c617bbf061c09a80baa04474a6a5c0728751.tar.gz
src-5908c617bbf061c09a80baa04474a6a5c0728751.zip
Several protocol switch functions (pru_abort, pru_detach, pru_sosetlabel)
return void, so don't implement no-op versions of these functions. Instead, consistently check if those switch pointers are NULL before invoking them.
Notes
Notes: svn path=/head/; revision=160281
Diffstat (limited to 'sys/sys/protosw.h')
-rw-r--r--sys/sys/protosw.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h
index e6bdec437954..a0bc968e8c59 100644
--- a/sys/sys/protosw.h
+++ b/sys/sys/protosw.h
@@ -249,7 +249,6 @@ struct pr_usrreqs {
/*
* All nonvoid pru_*() functions below return EOPNOTSUPP.
*/
-void pru_abort_notsupp(struct socket *so);
int pru_accept_notsupp(struct socket *so, struct sockaddr **nam);
int pru_attach_notsupp(struct socket *so, int proto, struct thread *td);
int pru_bind_notsupp(struct socket *so, struct sockaddr *nam,
@@ -259,7 +258,6 @@ int pru_connect_notsupp(struct socket *so, struct sockaddr *nam,
int pru_connect2_notsupp(struct socket *so1, struct socket *so2);
int pru_control_notsupp(struct socket *so, u_long cmd, caddr_t data,
struct ifnet *ifp, struct thread *td);
-void pru_detach_notsupp(struct socket *so);
int pru_disconnect_notsupp(struct socket *so);
int pru_listen_notsupp(struct socket *so, int backlog, struct thread *td);
int pru_peeraddr_notsupp(struct socket *so, struct sockaddr **nam);
@@ -278,7 +276,6 @@ int pru_soreceive_notsupp(struct socket *so, struct sockaddr **paddr,
int *flagsp);
int pru_sopoll_notsupp(struct socket *so, int events, struct ucred *cred,
struct thread *td);
-void pru_sosetlabel_null(struct socket *so);
#endif /* _KERNEL */