Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Remove unused arguments.



details:   https://anonhg.NetBSD.org/src/rev/962ee845c1bd
branches:  trunk
changeset: 837933:962ee845c1bd
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Dec 27 16:59:17 2018 +0000

description:
Remove unused arguments.

diffstat:

 sys/netinet/tcp_output.c   |   8 ++++----
 sys/netinet/tcp_subr.c     |   8 ++++----
 sys/netinet/tcp_var.h      |   6 +++---
 sys/netinet/udp_usrreq.c   |  10 +++++-----
 sys/netinet6/udp6_usrreq.c |  14 +++++---------
 5 files changed, 21 insertions(+), 25 deletions(-)

diffs (182 lines):

diff -r ec998d859495 -r 962ee845c1bd sys/netinet/tcp_output.c
--- a/sys/netinet/tcp_output.c  Thu Dec 27 16:27:29 2018 +0000
+++ b/sys/netinet/tcp_output.c  Thu Dec 27 16:59:17 2018 +0000
@@ -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 @@
                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) &&
diff -r ec998d859495 -r 962ee845c1bd sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c    Thu Dec 27 16:27:29 2018 +0000
+++ b/sys/netinet/tcp_subr.c    Thu Dec 27 16:59:17 2018 +0000
@@ -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 @@
  * 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 @@
 
 #ifdef INET6
 void
-tcp6_quench(struct in6pcb *in6p, int errno)
+tcp6_quench(struct in6pcb *in6p)
 {
        struct tcpcb *tp = in6totcpcb(in6p);
 
diff -r ec998d859495 -r 962ee845c1bd sys/netinet/tcp_var.h
--- a/sys/netinet/tcp_var.h     Thu Dec 27 16:27:29 2018 +0000
+++ b/sys/netinet/tcp_var.h     Thu Dec 27 16:59:17 2018 +0000
@@ -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 @@
 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
diff -r ec998d859495 -r 962ee845c1bd sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c  Thu Dec 27 16:27:29 2018 +0000
+++ b/sys/netinet/udp_usrreq.c  Thu Dec 27 16:59:17 2018 +0000
@@ -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 @@
 
 #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 @@
 #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 @@
  *    -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;
diff -r ec998d859495 -r 962ee845c1bd sys/netinet6/udp6_usrreq.c
--- a/sys/netinet6/udp6_usrreq.c        Thu Dec 27 16:27:29 2018 +0000
+++ b/sys/netinet6/udp6_usrreq.c        Thu Dec 27 16:59:17 2018 +0000
@@ -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 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 @@
 #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 @@
  *    -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;



Home | Main Index | Thread Index | Old Index