summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_sockbuf.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-07-11 23:18:28 +0000
committerrwatson <rwatson@FreeBSD.org>2006-07-11 23:18:28 +0000
commit2137fc50e63deaaa5b157d30cad71e58e711f606 (patch)
tree929b63820e4c3cfe7ce25a1c573b885f1b5ce22d /sys/kern/uipc_sockbuf.c
parentb7a5696a9bda1d0dfd383a3ac205be5a490d5ccb (diff)
downloadFreeBSD-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/kern/uipc_sockbuf.c')
-rw-r--r--sys/kern/uipc_sockbuf.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c
index a77a6a1..14fd05a 100644
--- a/sys/kern/uipc_sockbuf.c
+++ b/sys/kern/uipc_sockbuf.c
@@ -1128,12 +1128,6 @@ sbcreatecontrol(p, size, type, level)
* Some routines that return EOPNOTSUPP for entry points that are not
* supported by a protocol. Fill in as needed.
*/
-void
-pru_abort_notsupp(struct socket *so)
-{
-
-}
-
int
pru_accept_notsupp(struct socket *so, struct sockaddr **nam)
{
@@ -1171,12 +1165,6 @@ pru_control_notsupp(struct socket *so, u_long cmd, caddr_t data,
return EOPNOTSUPP;
}
-void
-pru_detach_notsupp(struct socket *so)
-{
-
-}
-
int
pru_disconnect_notsupp(struct socket *so)
{
@@ -1260,16 +1248,6 @@ pru_sopoll_notsupp(struct socket *so, int events, struct ucred *cred,
}
/*
- * For protocol types that don't keep cached copies of labels in their
- * pcbs, provide a null sosetlabel that does a NOOP.
- */
-void
-pru_sosetlabel_null(struct socket *so)
-{
-
-}
-
-/*
* Make a copy of a sockaddr in a malloced buffer of type M_SONAME.
*/
struct sockaddr *
OpenPOWER on IntegriCloud