Source-Changes-HG archive

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

[src/trunk]: src/sys Remove unused mbuf argument from sbsavetimestamp.



details:   https://anonhg.NetBSD.org/src/rev/4453f081df74
branches:  trunk
changeset: 361361:4453f081df74
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Apr 26 19:22:17 2018 +0000

description:
Remove unused mbuf argument from sbsavetimestamp.

diffstat:

 sys/kern/uipc_socket.c   |  6 +++---
 sys/netinet/ip_input.c   |  6 +++---
 sys/netinet6/ip6_input.c |  6 +++---
 sys/sys/socketvar.h      |  4 ++--
 4 files changed, 11 insertions(+), 11 deletions(-)

diffs (99 lines):

diff -r f3f1f9f29c7a -r 4453f081df74 sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c    Thu Apr 26 19:13:34 2018 +0000
+++ b/sys/kern/uipc_socket.c    Thu Apr 26 19:22:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket.c,v 1.261 2018/03/19 16:32:30 roy Exp $    */
+/*     $NetBSD: uipc_socket.c,v 1.262 2018/04/26 19:22:17 maxv Exp $   */
 
 /*-
  * Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.261 2018/03/19 16:32:30 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.262 2018/04/26 19:22:17 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -2431,7 +2431,7 @@
 }
 
 struct mbuf **
-sbsavetimestamp(int opt, struct mbuf *m, struct mbuf **mp)
+sbsavetimestamp(int opt, struct mbuf **mp)
 {
        struct timeval tv;
        microtime(&tv);
diff -r f3f1f9f29c7a -r 4453f081df74 sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Thu Apr 26 19:13:34 2018 +0000
+++ b/sys/netinet/ip_input.c    Thu Apr 26 19:22:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.380 2018/04/15 07:35:49 maxv Exp $      */
+/*     $NetBSD: ip_input.c,v 1.381 2018/04/26 19:22:17 maxv Exp $      */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.380 2018/04/15 07:35:49 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.381 2018/04/26 19:22:17 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1497,7 +1497,7 @@
        int inpflags = inp->inp_flags;
 
        if (SOOPT_TIMESTAMP(so->so_options))
-               mp = sbsavetimestamp(so->so_options, m, mp);
+               mp = sbsavetimestamp(so->so_options, mp);
 
        if (inpflags & INP_RECVDSTADDR) {
                *mp = sbcreatecontrol(&ip->ip_dst,
diff -r f3f1f9f29c7a -r 4453f081df74 sys/netinet6/ip6_input.c
--- a/sys/netinet6/ip6_input.c  Thu Apr 26 19:13:34 2018 +0000
+++ b/sys/netinet6/ip6_input.c  Thu Apr 26 19:22:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_input.c,v 1.199 2018/04/26 07:01:38 maxv Exp $     */
+/*     $NetBSD: ip6_input.c,v 1.200 2018/04/26 19:22:17 maxv Exp $     */
 /*     $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $     */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.199 2018/04/26 07:01:38 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.200 2018/04/26 19:22:17 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_gateway.h"
@@ -1074,7 +1074,7 @@
 #endif
 
        if (SOOPT_TIMESTAMP(so->so_options))
-               mp = sbsavetimestamp(so->so_options, m, mp);
+               mp = sbsavetimestamp(so->so_options, mp);
 
        /* some OSes call this logic with IPv4 packet, for SO_TIMESTAMP */
        if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION)
diff -r f3f1f9f29c7a -r 4453f081df74 sys/sys/socketvar.h
--- a/sys/sys/socketvar.h       Thu Apr 26 19:13:34 2018 +0000
+++ b/sys/sys/socketvar.h       Thu Apr 26 19:22:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: socketvar.h,v 1.152 2018/04/19 21:19:07 christos Exp $ */
+/*     $NetBSD: socketvar.h,v 1.153 2018/04/26 19:22:17 maxv Exp $     */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -283,7 +283,7 @@
 struct mbuf *
        sbcreatecontrol1(void **, int, int, int, int);
 struct mbuf **
-       sbsavetimestamp(int, struct mbuf *, struct mbuf **);
+       sbsavetimestamp(int, struct mbuf **);
 void   sbdrop(struct sockbuf *, int);
 void   sbdroprecord(struct sockbuf *);
 void   sbflush(struct sockbuf *);



Home | Main Index | Thread Index | Old Index