Source-Changes-HG archive

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

[src/trunk]: src/sys/net remove useless cast.



details:   https://anonhg.NetBSD.org/src/rev/4a8c276adb58
branches:  trunk
changeset: 344612:4a8c276adb58
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Apr 07 04:04:47 2016 +0000

description:
remove useless cast.

diffstat:

 sys/net/route.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r fb3b30ef5fa0 -r 4a8c276adb58 sys/net/route.c
--- a/sys/net/route.c   Thu Apr 07 03:31:12 2016 +0000
+++ b/sys/net/route.c   Thu Apr 07 04:04:47 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.159 2016/04/07 03:09:56 christos Exp $     */
+/*     $NetBSD: route.c,v 1.160 2016/04/07 04:04:47 christos Exp $     */
 
 /*-
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.159 2016/04/07 03:09:56 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.160 2016/04/07 04:04:47 christos Exp $");
 
 #include <sys/param.h>
 #ifdef RTFLUSH_DEBUG
@@ -413,7 +413,7 @@
        if (report) {
                struct rt_addrinfo info;
 
-               memset((void *)&info, 0, sizeof(info));
+               memset(&info, 0, sizeof(info));
                info.rti_info[RTAX_DST] = dst;
                rt_missmsg(RTM_MISS, &info, 0, 0);
        }



Home | Main Index | Thread Index | Old Index