Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/newsmips/include - remove __P()



details:   https://anonhg.NetBSD.org/src/rev/24c70d855d7b
branches:  trunk
changeset: 573713:24c70d855d7b
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Feb 06 02:39:21 2005 +0000

description:
- remove __P()
- use do{}while(0) and remove register decl for DELAY() macro

diffstat:

 sys/arch/newsmips/include/param.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 59810ba59c88 -r 24c70d855d7b sys/arch/newsmips/include/param.h
--- a/sys/arch/newsmips/include/param.h Sun Feb 06 02:36:01 2005 +0000
+++ b/sys/arch/newsmips/include/param.h Sun Feb 06 02:39:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     from $NetBSD: param.h,v 1.10 2003/08/07 16:28:53 agc Exp $      */
+/*     from $NetBSD: param.h,v 1.11 2005/02/06 02:39:21 tsutsui Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -134,9 +134,9 @@
 #ifdef _KERNEL
 #ifndef _LOCORE
 
-extern void delay __P((int n));
+extern void delay(int n);
 extern int cpuspeed;
-#define DELAY(n) { register int N = cpuspeed * (n); while (--N > 0); }
+#define DELAY(n) do { int N = cpuspeed * (n); while (--N > 0); } while (0)
 
 #endif /* !_LOCORE */
 #endif /* _KERNEL */



Home | Main Index | Thread Index | Old Index