Source-Changes-HG archive

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

[src/netbsd-3]: src/sys/dev/raidframe Pull up revision 1.58 (requested by ost...



details:   https://anonhg.NetBSD.org/src/rev/c2b1e545a788
branches:  netbsd-3
changeset: 576263:c2b1e545a788
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Jun 17 13:36:04 2005 +0000

description:
Pull up revision 1.58 (requested by oster in ticket #472):
- avoid variable shadowing
- add a lot of const
- remove parameters from function declarations

diffstat:

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

diffs (36 lines):

diff -r 7102b3f3930c -r c2b1e545a788 sys/dev/raidframe/rf_disks.c
--- a/sys/dev/raidframe/rf_disks.c      Fri Jun 17 13:35:56 2005 +0000
+++ b/sys/dev/raidframe/rf_disks.c      Fri Jun 17 13:36:04 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_disks.c,v 1.57 2005/02/27 00:27:44 perry Exp $      */
+/*     $NetBSD: rf_disks.c,v 1.57.2.1 2005/06/17 13:36:04 tron Exp $   */
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -67,7 +67,7 @@
  ***************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.57 2005/02/27 00:27:44 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.57.2.1 2005/06/17 13:36:04 tron Exp $");
 
 #include <dev/raidframe/raidframevar.h>
 
@@ -570,7 +570,7 @@
 
 /* configure a single disk in the array */
 int
-rf_ConfigureDisk(RF_Raid_t *raidPtr, char *buf, RF_RaidDisk_t *diskPtr,
+rf_ConfigureDisk(RF_Raid_t *raidPtr, char *bf, RF_RaidDisk_t *diskPtr,
                 RF_RowCol_t col)
 {
        char   *p;
@@ -580,7 +580,7 @@
        struct proc *proc;
        int     error;
 
-       p = rf_find_non_white(buf);
+       p = rf_find_non_white(bf);
        if (p[strlen(p) - 1] == '\n') {
                /* strip off the newline */
                p[strlen(p) - 1] = '\0';



Home | Main Index | Thread Index | Old Index