Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern STDC cleanup: volatile needs to be cast away for lk...
details: https://anonhg.NetBSD.org/src/rev/5a7806b3066f
branches: trunk
changeset: 509129:5a7806b3066f
user: marcus <marcus%NetBSD.org@localhost>
date: Fri Apr 27 00:05:13 2001 +0000
description:
STDC cleanup: volatile needs to be cast away for lk_flags as well.
diffstat:
sys/kern/kern_lock.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 07f944346e8a -r 5a7806b3066f sys/kern/kern_lock.c
--- a/sys/kern/kern_lock.c Fri Apr 27 00:02:23 2001 +0000
+++ b/sys/kern/kern_lock.c Fri Apr 27 00:05:13 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lock.c,v 1.52 2001/04/20 22:58:39 thorpej Exp $ */
+/* $NetBSD: kern_lock.c,v 1.53 2001/04/27 00:05:13 marcus Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -218,7 +218,8 @@
else \
(lkp)->lk_waitcount++; \
/* XXX Cast away volatile. */ \
- error = ltsleep((drain) ? &(lkp)->lk_flags : \
+ error = ltsleep((drain) ? \
+ (void *)&(lkp)->lk_flags : \
(void *)(lkp), (lkp)->lk_prio, \
(lkp)->lk_wmesg, (lkp)->lk_timo, \
&(lkp)->lk_interlock); \
Home |
Main Index |
Thread Index |
Old Index