Source-Changes-HG archive

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

[src/trunk]: src/sys Adjust for fewer args in calling functions



details:   https://anonhg.NetBSD.org/src/rev/c77f009fb2ac
branches:  trunk
changeset: 953440:c77f009fb2ac
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 08 23:34:58 2021 +0000

description:
Adjust for fewer args in calling functions

diffstat:

 sys/dist/pf/net/pf_norm.c                    |  6 +++---
 sys/external/bsd/ipf/netinet/ip_fil_netbsd.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 02ea84e7a912 -r c77f009fb2ac sys/dist/pf/net/pf_norm.c
--- a/sys/dist/pf/net/pf_norm.c Mon Mar 08 22:28:31 2021 +0000
+++ b/sys/dist/pf/net/pf_norm.c Mon Mar 08 23:34:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pf_norm.c,v 1.28 2015/04/13 16:35:33 riastradh Exp $   */
+/*     $NetBSD: pf_norm.c,v 1.29 2021/03/08 23:34:58 christos Exp $    */
 /*     $OpenBSD: pf_norm.c,v 1.109 2007/05/28 17:16:39 henning Exp $ */
 
 /*
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pf_norm.c,v 1.28 2015/04/13 16:35:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pf_norm.c,v 1.29 2021/03/08 23:34:58 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1044,7 +1044,7 @@
        if (r->rule_flag & PFRULE_RANDOMID) {
                u_int16_t id = h->ip_id;
 
-               h->ip_id = ip_randomid(ip_ids, 0);
+               h->ip_id = ip_randomid();
                h->ip_sum = pf_cksum_fixup(h->ip_sum, id, h->ip_id, 0);
        }
        if ((r->rule_flag & (PFRULE_FRAGCROP|PFRULE_FRAGDROP)) == 0)
diff -r 02ea84e7a912 -r c77f009fb2ac sys/external/bsd/ipf/netinet/ip_fil_netbsd.c
--- a/sys/external/bsd/ipf/netinet/ip_fil_netbsd.c      Mon Mar 08 22:28:31 2021 +0000
+++ b/sys/external/bsd/ipf/netinet/ip_fil_netbsd.c      Mon Mar 08 23:34:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_fil_netbsd.c,v 1.35 2020/06/12 10:35:59 roy Exp $   */
+/*     $NetBSD: ip_fil_netbsd.c,v 1.36 2021/03/08 23:34:58 christos Exp $      */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -8,7 +8,7 @@
 #if !defined(lint)
 #if defined(__NetBSD__)
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_fil_netbsd.c,v 1.35 2020/06/12 10:35:59 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_fil_netbsd.c,v 1.36 2021/03/08 23:34:58 christos Exp $");
 #else
 static const char sccsid[] = "@(#)ip_fil.c     2.41 6/5/96 (C) 1993-2000 Darren Reed";
 static const char rcsid[] = "@(#)Id: ip_fil_netbsd.c,v 1.1.1.2 2012/07/22 13:45:17 darrenr Exp";
@@ -1637,7 +1637,7 @@
                return 0;
 #ifdef INET
        return tcp_new_iss1((void *)&fin->fin_src, (void *)&fin->fin_dst,
-                           fin->fin_sport, fin->fin_dport, asz, 0);
+                           fin->fin_sport, fin->fin_dport, asz);
 #else
        return ENOSYS;
 #endif



Home | Main Index | Thread Index | Old Index