summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-11-23 13:45:47 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-11-23 13:45:47 +0000
commit08df52708934e060b4a1703b6567cb299daf5441 (patch)
tree8c608d3172e9a4c994684d0350632d2f0e9f62fd /sys/kern/uipc_socket.c
parent7e36b61cd38a09ad7df4709cfc0a24d47bca6ced (diff)
Constify protocol tables and remove an assert now that ip_deliver() is
mp-safe. ok bluhm@, visa@
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r--sys/kern/uipc_socket.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 7111b358287..99b2dc4331e 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket.c,v 1.208 2017/11/23 13:42:53 mpi Exp $ */
+/* $OpenBSD: uipc_socket.c,v 1.209 2017/11/23 13:45:46 mpi Exp $ */
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
@@ -111,7 +111,7 @@ int
socreate(int dom, struct socket **aso, int type, int proto)
{
struct proc *p = curproc; /* XXX */
- struct protosw *prp;
+ const struct protosw *prp;
struct socket *so;
int error, s;
@@ -633,7 +633,7 @@ soreceive(struct socket *so, struct mbuf **paddr, struct uio *uio,
struct mbuf *cm;
u_long len, offset, moff;
int flags, error, s, type, uio_error = 0;
- struct protosw *pr = so->so_proto;
+ const struct protosw *pr = so->so_proto;
struct mbuf *nextrecord;
size_t resid, orig_resid = uio->uio_resid;
@@ -1012,7 +1012,7 @@ release:
int
soshutdown(struct socket *so, int how)
{
- struct protosw *pr = so->so_proto;
+ const struct protosw *pr = so->so_proto;
int s, error = 0;
s = solock(so);
@@ -1040,7 +1040,7 @@ void
sorflush(struct socket *so)
{
struct sockbuf *sb = &so->so_rcv;
- struct protosw *pr = so->so_proto;
+ const struct protosw *pr = so->so_proto;
struct socket aso;
int error;