diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-07-11 23:18:28 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-07-11 23:18:28 +0000 |
commit | 2137fc50e63deaaa5b157d30cad71e58e711f606 (patch) | |
tree | 929b63820e4c3cfe7ce25a1c573b885f1b5ce22d /sys/sys/protosw.h | |
parent | b7a5696a9bda1d0dfd383a3ac205be5a490d5ccb (diff) | |
download | FreeBSD-src-2137fc50e63deaaa5b157d30cad71e58e711f606.zip FreeBSD-src-2137fc50e63deaaa5b157d30cad71e58e711f606.tar.gz |
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.
Diffstat (limited to 'sys/sys/protosw.h')
-rw-r--r-- | sys/sys/protosw.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h index e6bdec4..a0bc968 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 */ |