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.15 (requested by ost...
details: https://anonhg.NetBSD.org/src/rev/518b5607cd9e
branches: netbsd-3
changeset: 576258:518b5607cd9e
user: tron <tron%NetBSD.org@localhost>
date: Fri Jun 17 13:35:31 2005 +0000
description:
Pull up revision 1.15 (requested by oster in ticket #472):
- avoid variable shadowing
- add a lot of const
- remove parameters from function declarations
diffstat:
sys/dev/raidframe/rf_dagffrd.c | 6 +++---
sys/dev/raidframe/rf_general.h | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (51 lines):
diff -r 7382a267c6d9 -r 518b5607cd9e sys/dev/raidframe/rf_dagffrd.c
--- a/sys/dev/raidframe/rf_dagffrd.c Fri Jun 17 13:35:24 2005 +0000
+++ b/sys/dev/raidframe/rf_dagffrd.c Fri Jun 17 13:35:31 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_dagffrd.c,v 1.14 2005/02/27 00:27:44 perry Exp $ */
+/* $NetBSD: rf_dagffrd.c,v 1.14.2.1 2005/06/17 13:35:31 tron Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_dagffrd.c,v 1.14 2005/02/27 00:27:44 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_dagffrd.c,v 1.14.2.1 2005/06/17 13:35:31 tron Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -135,7 +135,7 @@
RF_PhysDiskAddr_t *pda = asmap->physInfo;
int (*doFunc) (RF_DagNode_t *), (*undoFunc) (RF_DagNode_t *);
int i, n, totalNumNodes;
- char *name;
+ const char *name;
n = asmap->numStripeUnitsAccessed;
dag_h->creator = "NonredundantDAG";
diff -r 7382a267c6d9 -r 518b5607cd9e sys/dev/raidframe/rf_general.h
--- a/sys/dev/raidframe/rf_general.h Fri Jun 17 13:35:24 2005 +0000
+++ b/sys/dev/raidframe/rf_general.h Fri Jun 17 13:35:31 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_general.h,v 1.14 2005/02/27 00:27:45 perry Exp $ */
+/* $NetBSD: rf_general.h,v 1.14.2.1 2005/06/17 13:35:31 tron Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -49,10 +49,10 @@
#define RF_ERRORMSG2(s,a,b) printf((s),(a),(b))
#define RF_ERRORMSG3(s,a,b,c) printf((s),(a),(b),(c))
-void rf_print_panic_message(int, char *);
-void rf_print_assert_panic_message(int, char *, char *);
-void rf_print_unable_to_init_mutex(char *, int, int);
-void rf_print_unable_to_add_shutdown(char *, int, int);
+void rf_print_panic_message(int, const char *);
+void rf_print_assert_panic_message(int, const char *, const char *);
+void rf_print_unable_to_init_mutex(const char *, int, int);
+void rf_print_unable_to_add_shutdown(const char *, int, int);
extern char rf_panicbuf[];
Home |
Main Index |
Thread Index |
Old Index