Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/nand Rename isbad argument to is_bad - stupid namesp...



details:   https://anonhg.NetBSD.org/src/rev/8168a6bed115
branches:  trunk
changeset: 768905:8168a6bed115
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Aug 28 20:49:30 2011 +0000

description:
Rename isbad argument to is_bad - stupid namespace pollution and ancient
bad sector routines interfere on some archs and cause global shadowing
warnings.

diffstat:

 sys/dev/nand/nand.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 87b6f5aff329 -r 8168a6bed115 sys/dev/nand/nand.c
--- a/sys/dev/nand/nand.c       Sun Aug 28 20:37:06 2011 +0000
+++ b/sys/dev/nand/nand.c       Sun Aug 28 20:49:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nand.c,v 1.15 2011/07/15 19:19:57 cliff Exp $  */
+/*     $NetBSD: nand.c,v 1.16 2011/08/28 20:49:30 martin Exp $ */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -34,7 +34,7 @@
 /* Common driver for NAND chips implementing the ONFI 2.2 specification */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.15 2011/07/15 19:19:57 cliff Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.16 2011/08/28 20:49:30 martin Exp $");
 
 #include "locators.h"
 
@@ -1372,7 +1372,7 @@
 }
 
 int
-nand_flash_isbad(device_t self, flash_off_t ofs, bool *isbad)
+nand_flash_isbad(device_t self, flash_off_t ofs, bool *is_bad)
 {
        struct nand_softc *sc = device_private(self);
        struct nand_chip *chip = &sc->sc_chip;
@@ -1396,7 +1396,7 @@
        result = nand_isbad(self, ofs);
        mutex_exit(&sc->sc_device_lock);
 
-       *isbad = result;
+       *is_bad = result;
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index