Remove unused arguments.

This commit is contained in:
maxv 2018-12-27 16:59:17 +00:00
parent 0e4d8abb47
commit b9e11ce70c
5 changed files with 21 additions and 25 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcp_output.c,v 1.209 2018/09/03 16:29:36 riastradh Exp $ */
/* $NetBSD: tcp_output.c,v 1.210 2018/12/27 16:59:17 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -135,7 +135,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.209 2018/09/03 16:29:36 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.210 2018/12/27 16:59:17 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@ -1656,10 +1656,10 @@ out:
if (error == ENOBUFS) {
TCP_STATINC(TCP_STAT_SELFQUENCH);
if (tp->t_inpcb)
tcp_quench(tp->t_inpcb, 0);
tcp_quench(tp->t_inpcb);
#ifdef INET6
if (tp->t_in6pcb)
tcp6_quench(tp->t_in6pcb, 0);
tcp6_quench(tp->t_in6pcb);
#endif
error = 0;
} else if ((error == EHOSTUNREACH || error == ENETDOWN) &&

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcp_subr.c,v 1.281 2018/09/03 16:29:36 riastradh Exp $ */
/* $NetBSD: tcp_subr.c,v 1.282 2018/12/27 16:59:17 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.281 2018/09/03 16:29:36 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.282 2018/12/27 16:59:17 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@ -1631,7 +1631,7 @@ tcp_ctlinput(int cmd, const struct sockaddr *sa, void *v)
* We will gradually open it again as we proceed.
*/
void
tcp_quench(struct inpcb *inp, int errno)
tcp_quench(struct inpcb *inp)
{
struct tcpcb *tp = intotcpcb(inp);
@ -1643,7 +1643,7 @@ tcp_quench(struct inpcb *inp, int errno)
#ifdef INET6
void
tcp6_quench(struct in6pcb *in6p, int errno)
tcp6_quench(struct in6pcb *in6p)
{
struct tcpcb *tp = in6totcpcb(in6p);

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcp_var.h,v 1.189 2018/09/14 05:09:51 maxv Exp $ */
/* $NetBSD: tcp_var.h,v 1.190 2018/12/27 16:59:17 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -891,9 +891,9 @@ u_int tcp_optlen(struct tcpcb *);
int tcp_output(struct tcpcb *);
void tcp_pulloutofband(struct socket *,
struct tcphdr *, struct mbuf *, int);
void tcp_quench(struct inpcb *, int);
void tcp_quench(struct inpcb *);
#ifdef INET6
void tcp6_quench(struct in6pcb *, int);
void tcp6_quench(struct in6pcb *);
#endif
void tcp_mtudisc(struct inpcb *, int);
#ifdef INET6

View File

@ -1,4 +1,4 @@
/* $NetBSD: udp_usrreq.c,v 1.257 2018/11/22 04:48:34 knakahara Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.258 2018/12/27 16:59:17 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.257 2018/11/22 04:48:34 knakahara Exp $");
__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.258 2018/12/27 16:59:17 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@ -127,7 +127,7 @@ percpu_t *udpstat_percpu;
#ifdef INET
#ifdef IPSEC
static int udp4_espinudp(struct mbuf **, int, struct socket *);
static int udp4_espinudp(struct mbuf **, int);
#endif
static void udp4_sendup(struct mbuf *, int, struct sockaddr *,
struct socket *);
@ -577,7 +577,7 @@ udp4_realinput(struct sockaddr_in *src, struct sockaddr_in *dst,
#ifdef IPSEC
/* Handle ESP over UDP */
if (inp->inp_flags & INP_ESPINUDP) {
switch (udp4_espinudp(mp, off, inp->inp_socket)) {
switch (udp4_espinudp(mp, off)) {
case -1: /* Error, m was freed */
rcvcnt = -1;
goto bad;
@ -1223,7 +1223,7 @@ udp_statinc(u_int stat)
* -1 if an error occurred and m was freed
*/
static int
udp4_espinudp(struct mbuf **mp, int off, struct socket *so)
udp4_espinudp(struct mbuf **mp, int off)
{
const size_t skip = sizeof(struct udphdr);
size_t len;

View File

@ -1,4 +1,4 @@
/* $NetBSD: udp6_usrreq.c,v 1.144 2018/11/22 04:48:34 knakahara Exp $ */
/* $NetBSD: udp6_usrreq.c,v 1.145 2018/12/27 16:59:17 maxv Exp $ */
/* $KAME: udp6_usrreq.c,v 1.86 2001/05/27 17:33:00 itojun Exp $ */
/* $KAME: udp6_output.c,v 1.43 2001/10/15 09:19:52 itojun Exp $ */
@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: udp6_usrreq.c,v 1.144 2018/11/22 04:48:34 knakahara Exp $");
__KERNEL_RCSID(0, "$NetBSD: udp6_usrreq.c,v 1.145 2018/12/27 16:59:17 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@ -137,8 +137,7 @@ static int udp6_recvspace = 40 * (1024 + sizeof(struct sockaddr_in6));
static void udp6_notify(struct in6pcb *, int);
static void sysctl_net_inet6_udp6_setup(struct sysctllog **);
#ifdef IPSEC
static int udp6_espinudp(struct mbuf **, int, struct sockaddr *,
struct socket *);
static int udp6_espinudp(struct mbuf **, int);
#endif
#ifdef UDP_CSUM_COUNTERS
@ -527,9 +526,7 @@ udp6_realinput(int af, struct sockaddr_in6 *src, struct sockaddr_in6 *dst,
#ifdef IPSEC
/* Handle ESP over UDP */
if (in6p->in6p_flags & IN6P_ESPINUDP) {
struct sockaddr *sa = (struct sockaddr *)src;
switch (udp6_espinudp(mp, off, sa, in6p->in6p_socket)) {
switch (udp6_espinudp(mp, off)) {
case -1: /* Error, m was freed */
rcvcnt = -1;
goto bad;
@ -1385,8 +1382,7 @@ udp6_statinc(u_int stat)
* -1 if an error occurred and m was freed
*/
static int
udp6_espinudp(struct mbuf **mp, int off, struct sockaddr *src,
struct socket *so)
udp6_espinudp(struct mbuf **mp, int off)
{
const size_t skip = sizeof(struct udphdr);
size_t len;