-/* $OpenBSD: uipc_socket.c,v 1.283 2022/08/15 09:11:38 mvs Exp $ */
+/* $OpenBSD: uipc_socket.c,v 1.284 2022/08/21 16:22:17 mvs Exp $ */
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
(void) soqremque(so2, 0);
if (persocket)
sounlock(so);
- (void) soabort(so2);
+ soabort(so2);
if (persocket)
solock(so);
}
(void) soqremque(so2, 1);
if (persocket)
sounlock(so);
- (void) soabort(so2);
+ soabort(so2);
if (persocket)
solock(so);
}
return (error);
}
-int
+void
soabort(struct socket *so)
{
soassertlocked(so);
-
- return pru_abort(so);
+ pru_abort(so);
}
int
-/* $OpenBSD: tcp_input.c,v 1.377 2022/08/11 09:13:21 claudio Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.378 2022/08/21 16:22:17 mvs Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
abort:
m_freem(m);
if (so != NULL)
- (void) soabort(so);
+ soabort(so);
syn_cache_put(sc);
tcpstat_inc(tcps_sc_aborted);
return ((struct socket *)(-1));
-/* $OpenBSD: socketvar.h,v 1.107 2022/08/13 21:01:46 mvs Exp $ */
+/* $OpenBSD: socketvar.h,v 1.108 2022/08/21 16:22:18 mvs Exp $ */
/* $NetBSD: socketvar.h,v 1.18 1996/02/09 18:25:38 christos Exp $ */
/*-
int sbwait(struct socket *, struct sockbuf *);
int sb_lock(struct sockbuf *);
void soinit(void);
-int soabort(struct socket *);
+void soabort(struct socket *);
int soaccept(struct socket *, struct mbuf *);
int sobind(struct socket *, struct mbuf *, struct proc *);
void socantrcvmore(struct socket *);