Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm Don't use not as a variable since it's rese...



details:   https://anonhg.NetBSD.org/src/rev/0268b91126af
branches:  trunk
changeset: 332012:0268b91126af
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Sep 05 05:24:53 2014 +0000

description:
Don't use not as a variable since it's reserved in C++.

diffstat:

 sys/arch/arm/arm/bootconfig.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (51 lines):

diff -r fb8e6bd11532 -r 0268b91126af sys/arch/arm/arm/bootconfig.c
--- a/sys/arch/arm/arm/bootconfig.c     Fri Sep 05 05:19:24 2014 +0000
+++ b/sys/arch/arm/arm/bootconfig.c     Fri Sep 05 05:24:53 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bootconfig.c,v 1.6 2009/08/02 11:32:05 gavan Exp $     */
+/*     $NetBSD: bootconfig.c,v 1.7 2014/09/05 05:24:53 matt Exp $      */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -38,7 +38,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: bootconfig.c,v 1.6 2009/08/02 11:32:05 gavan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bootconfig.c,v 1.7 2014/09/05 05:24:53 matt Exp $");
 
 #include <sys/systm.h>
 
@@ -56,7 +56,7 @@
 {
        char *ptr;
        char *optstart;
-       int not;
+       bool neg;
 
        ptr = opts;
 
@@ -68,12 +68,12 @@
                if (*ptr == 0)
                        break;
 
-               not = 0;
+               neg = false;
 
                /* Is it a negate option */
                if ((type & BOOTOPT_TYPE_MASK) == BOOTOPT_TYPE_BOOLEAN &&
                    *ptr == '!') {
-                       not = 1;
+                       neg = true;
                        ++ptr;
                }
 
@@ -99,7 +99,7 @@
                                                    ((u_int)strtoul(ptr, NULL,
                                                    10) != 0);
                                        else
-                                               *((int *)result) = !not;
+                                               *((int *)result) = !neg;
                                        break;
                                case BOOTOPT_TYPE_STRING :
                                        *((char **)result) = ptr;



Home | Main Index | Thread Index | Old Index