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.19 (requested by ost...



details:   https://anonhg.NetBSD.org/src/rev/5acc14604159
branches:  netbsd-3
changeset: 576261:5acc14604159
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Jun 17 13:35:50 2005 +0000

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

diffstat:

 sys/dev/raidframe/rf_dagutils.h |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (37 lines):

diff -r ebb8acbb09e4 -r 5acc14604159 sys/dev/raidframe/rf_dagutils.h
--- a/sys/dev/raidframe/rf_dagutils.h   Fri Jun 17 13:35:43 2005 +0000
+++ b/sys/dev/raidframe/rf_dagutils.h   Fri Jun 17 13:35:50 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_dagutils.h,v 1.18 2005/02/27 00:27:44 perry Exp $   */
+/*     $NetBSD: rf_dagutils.h,v 1.18.2.1 2005/06/17 13:35:50 tron Exp $        */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -43,9 +43,9 @@
 
 struct RF_RedFuncs_s {
        int     (*regular) (RF_DagNode_t *);
-       char   *RegularName;
+       const char   *RegularName;
        int     (*simple) (RF_DagNode_t *);
-       char   *SimpleName;
+       const char   *SimpleName;
 };
 
 typedef struct RF_FuncList_s {
@@ -57,11 +57,11 @@
 extern const RF_RedFuncs_t rf_xorRecoveryFuncs;
 
 void rf_InitNode(RF_DagNode_t *, RF_NodeStatus_t, int,
-                int (*doFunc) (RF_DagNode_t *),
-                int (*undoFunc) (RF_DagNode_t *),
-                int (*wakeFunc) (RF_DagNode_t *, int),
+                int (*) (RF_DagNode_t *),
+                int (*) (RF_DagNode_t *),
+                int (*) (RF_DagNode_t *, int),
                 int, int, int, int, RF_DagHeader_t *,
-                char *, RF_AllocListElem_t *);
+                const char *, RF_AllocListElem_t *);
 
 void rf_FreeDAG(RF_DagHeader_t *);
 int rf_ConfigureDAGs(RF_ShutdownList_t **);



Home | Main Index | Thread Index | Old Index