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.9 (requested by oste...
details: https://anonhg.NetBSD.org/src/rev/175e18cc07ca
branches: netbsd-3
changeset: 576259:175e18cc07ca
user: tron <tron%NetBSD.org@localhost>
date: Fri Jun 17 13:35:37 2005 +0000
description:
Pull up revision 1.9 (requested by oster in ticket #472):
- avoid variable shadowing
- add a lot of const
- remove parameters from function declarations
diffstat:
sys/dev/raidframe/rf_etimer.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (35 lines):
diff -r 518b5607cd9e -r 175e18cc07ca sys/dev/raidframe/rf_etimer.h
--- a/sys/dev/raidframe/rf_etimer.h Fri Jun 17 13:35:31 2005 +0000
+++ b/sys/dev/raidframe/rf_etimer.h Fri Jun 17 13:35:37 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_etimer.h,v 1.8 2001/10/04 17:42:29 oster Exp $ */
+/* $NetBSD: rf_etimer.h,v 1.8.32.1 2005/06/17 13:35:37 tron Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -42,19 +42,19 @@
#define RF_ETIMER_START(_t_) \
{ \
- int s; \
+ int _s; \
memset(&(_t_), 0, sizeof (_t_)); \
- s = splclock(); \
+ _s = splclock(); \
(_t_).st = mono_time; \
- splx(s); \
+ splx(_s); \
}
#define RF_ETIMER_STOP(_t_) \
{ \
- int s; \
- s = splclock(); \
+ int _s; \
+ _s = splclock(); \
(_t_).et = mono_time; \
- splx(s); \
+ splx(_s); \
}
#define RF_ETIMER_EVAL(_t_) \
Home |
Main Index |
Thread Index |
Old Index