Source-Changes-HG archive

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

[src/trunk]: src/sys/net Don't use C++ new keyword



details:   https://anonhg.NetBSD.org/src/rev/dc020d724b32
branches:  trunk
changeset: 332039:dc020d724b32
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Sep 05 06:00:05 2014 +0000

description:
Don't use C++ new keyword

diffstat:

 sys/net/rtsock.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r f79ca26e1ecb -r dc020d724b32 sys/net/rtsock.c
--- a/sys/net/rtsock.c  Fri Sep 05 05:57:21 2014 +0000
+++ b/sys/net/rtsock.c  Fri Sep 05 06:00:05 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtsock.c,v 1.163 2014/08/09 05:33:01 rtr Exp $ */
+/*     $NetBSD: rtsock.c,v 1.164 2014/09/05 06:00:05 matt Exp $        */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.163 2014/08/09 05:33:01 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.164 2014/09/05 06:00:05 matt Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1379,7 +1379,6 @@
 {
        void    *where = oldp;
        size_t  *given = oldlenp;
-       const void *new = newp;
        int     i, s, error = EINVAL;
        u_char  af;
        struct  rt_walkarg w;
@@ -1387,7 +1386,7 @@
        if (namelen == 1 && name[0] == CTL_QUERY)
                return sysctl_query(SYSCTLFN_CALL(rnode));
 
-       if (new)
+       if (newp)
                return EPERM;
        if (namelen != 3)
                return EINVAL;



Home | Main Index | Thread Index | Old Index