- remove __P()
- use do{}while(0) and remove register decl for DELAY() macro
This commit is contained in:
parent
6930b9d38b
commit
521796afe7
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue