summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-10-17 00:51:29 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-10-17 00:51:29 +0000
commit750b751b9aba975915f34ecb2a3c55e32fd9de99 (patch)
tree391bbb2bee3a829ea7ca13e612dff6963e8b48b3 /sys/netinet
parent46ff0745dabc773ac45a1e11d49aca0617624e0a (diff)
in6_setsockaddr and in6_setpeeraddr can't fail, so let them return void.
this also brings them in line with the AF_INET equivalents. ok visa@ bluhm@
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in_pcb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 4c9ff602699..8e46bab2969 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.h,v 1.116 2019/07/15 12:40:42 bluhm Exp $ */
+/* $OpenBSD: in_pcb.h,v 1.117 2019/10/17 00:51:28 dlg Exp $ */
/* $NetBSD: in_pcb.h,v 1.14 1996/02/13 23:42:00 christos Exp $ */
/*
@@ -287,8 +287,8 @@ struct inpcb *
int in6_pcbaddrisavail(struct inpcb *, struct sockaddr_in6 *, int,
struct proc *);
int in6_pcbconnect(struct inpcb *, struct mbuf *);
-int in6_setsockaddr(struct inpcb *, struct mbuf *);
-int in6_setpeeraddr(struct inpcb *, struct mbuf *);
+void in6_setsockaddr(struct inpcb *, struct mbuf *);
+void in6_setpeeraddr(struct inpcb *, struct mbuf *);
#endif /* INET6 */
void in_pcbinit(struct inpcbtable *, int);
struct inpcb *