prepend an underscore to local variables in macros, to avoid shadowing
user defined ones
This commit is contained in:
parent
7aee94451b
commit
d481be4d04
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mbuf.h,v 1.107 2005/05/23 17:34:07 dbj Exp $ */
|
||||
/* $NetBSD: mbuf.h,v 1.108 2005/06/01 18:03:50 drochner Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1999, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -338,9 +338,9 @@ MBUF_DEFINE(mbuf, MHLEN, MLEN);
|
|||
*/
|
||||
#define MBUFLOCK(code) \
|
||||
do { \
|
||||
int ms = splvm(); \
|
||||
int _ms = splvm(); \
|
||||
{ code } \
|
||||
splx(ms); \
|
||||
splx(_ms); \
|
||||
} while (/* CONSTCOND */ 0)
|
||||
|
||||
#ifdef MBUFTRACE
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_stat.h,v 1.35 2004/11/23 05:08:33 yamt Exp $ */
|
||||
/* $NetBSD: uvm_stat.h,v 1.36 2005/06/01 18:03:50 drochner Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -176,11 +176,11 @@ do { \
|
|||
#define UVMHIST_CALLED(NAME) \
|
||||
do { \
|
||||
{ \
|
||||
int s = splhigh(); \
|
||||
int _s = splhigh(); \
|
||||
simple_lock(&(NAME).l); \
|
||||
_uvmhist_call = _uvmhist_cnt++; \
|
||||
simple_unlock(&(NAME).l); \
|
||||
splx(s); \
|
||||
splx(_s); \
|
||||
} \
|
||||
UVMHIST_LOG(NAME,"called!", 0, 0, 0, 0); \
|
||||
} while (/*CONSTCOND*/ 0)
|
||||
|
|
Loading…
Reference in New Issue