Source-Changes-HG archive

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

[src/trunk]: src/sys Sweep unnecessary malloc.h inclusions



details:   https://anonhg.NetBSD.org/src/rev/e145c96ff75f
branches:  trunk
changeset: 351645:e145c96ff75f
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Feb 21 03:59:31 2017 +0000

description:
Sweep unnecessary malloc.h inclusions

diffstat:

 sys/net/if_ethersubr.c   |  8 +++-----
 sys/netinet6/ip6_input.c |  5 ++---
 2 files changed, 5 insertions(+), 8 deletions(-)

diffs (62 lines):

diff -r 6063176fac9e -r e145c96ff75f sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c    Tue Feb 21 03:58:23 2017 +0000
+++ b/sys/net/if_ethersubr.c    Tue Feb 21 03:59:31 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ethersubr.c,v 1.238 2017/02/14 03:05:06 ozaki-r Exp $       */
+/*     $NetBSD: if_ethersubr.c,v 1.239 2017/02/21 03:59:31 ozaki-r Exp $       */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.238 2017/02/14 03:05:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.239 2017/02/21 03:59:31 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -80,7 +80,6 @@
 #include "agr.h"
 
 #include <sys/sysctl.h>
-#include <sys/malloc.h>
 #include <sys/mbuf.h>
 #include <sys/mutex.h>
 #include <sys/ioctl.h>
@@ -1271,8 +1270,7 @@
                goto out;
        }
        /*
-        * New address or range; malloc a new multicast record
-        * and link it into the interface's multicast list.
+        * Link a new multicast record into the interface's multicast list.
         */
        memcpy(enm->enm_addrlo, addrlo, 6);
        memcpy(enm->enm_addrhi, addrhi, 6);
diff -r 6063176fac9e -r e145c96ff75f sys/netinet6/ip6_input.c
--- a/sys/netinet6/ip6_input.c  Tue Feb 21 03:58:23 2017 +0000
+++ b/sys/netinet6/ip6_input.c  Tue Feb 21 03:59:31 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_input.c,v 1.173 2017/01/16 15:44:47 christos Exp $ */
+/*     $NetBSD: ip6_input.c,v 1.174 2017/02/21 03:59:31 ozaki-r 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.173 2017/01/16 15:44:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.174 2017/02/21 03:59:31 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_gateway.h"
@@ -75,7 +75,6 @@
 
 #include <sys/param.h>
 #include <sys/systm.h>
-#include <sys/malloc.h>
 #include <sys/mbuf.h>
 #include <sys/domain.h>
 #include <sys/protosw.h>



Home | Main Index | Thread Index | Old Index