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.108 (requested by os...



details:   https://anonhg.NetBSD.org/src/rev/4be2aaf318d1
branches:  netbsd-3
changeset: 576255:4be2aaf318d1
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Jun 17 13:35:11 2005 +0000

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

diffstat:

 sys/dev/raidframe/rf_driver.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r 3584024de893 -r 4be2aaf318d1 sys/dev/raidframe/rf_driver.c
--- a/sys/dev/raidframe/rf_driver.c     Fri Jun 17 13:35:04 2005 +0000
+++ b/sys/dev/raidframe/rf_driver.c     Fri Jun 17 13:35:11 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_driver.c,v 1.107 2005/02/27 00:27:44 perry Exp $    */
+/*     $NetBSD: rf_driver.c,v 1.107.2.1 2005/06/17 13:35:11 tron Exp $ */
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -73,7 +73,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.107 2005/02/27 00:27:44 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.107.2.1 2005/06/17 13:35:11 tron Exp $");
 
 #include "opt_raid_diagnostic.h"
 
@@ -865,7 +865,7 @@
 }
 
 void
-rf_print_panic_message(int line, char *file)
+rf_print_panic_message(int line, const char *file)
 {
        snprintf(rf_panicbuf, sizeof(rf_panicbuf),
            "raidframe error at line %d file %s", line, file);
@@ -873,7 +873,7 @@
 
 #ifdef RAID_DIAGNOSTIC
 void
-rf_print_assert_panic_message(int line,        char *file, char *condition)
+rf_print_assert_panic_message(int line,        const char *file, const char *condition)
 {
        snprintf(rf_panicbuf, sizeof(rf_panicbuf),
                "raidframe error at line %d file %s (failed asserting %s)\n",
@@ -882,14 +882,14 @@
 #endif
 
 void
-rf_print_unable_to_init_mutex(char *file, int line, int rc)
+rf_print_unable_to_init_mutex(const char *file, int line, int rc)
 {
        RF_ERRORMSG3("Unable to init mutex file %s line %d rc=%d\n",
                     file, line, rc);
 }
 
 void
-rf_print_unable_to_add_shutdown(char *file, int line, int rc)
+rf_print_unable_to_add_shutdown(const char *file, int line, int rc)
 {
        RF_ERRORMSG3("Unable to add to shutdown list file %s line %d rc=%d\n",
                     file, line, rc);



Home | Main Index | Thread Index | Old Index