Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include In __cpu_simple_lock_try(), use "retu...
details: https://anonhg.NetBSD.org/src/rev/de9061cf3e1d
branches: trunk
changeset: 487385:de9061cf3e1d
user: simonb <simonb%NetBSD.org@localhost>
date: Wed Jun 07 01:49:13 2000 +0000
description:
In __cpu_simple_lock_try(), use "return (v0 != 0);" instead of
"return (v0);" where v0 is an unsigned long and the function return
type is int. Stops lint warnings when this file is included.
Fix from Jason Thorpe.
diffstat:
sys/arch/alpha/include/lock.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r a8aa851ffe8c -r de9061cf3e1d sys/arch/alpha/include/lock.h
--- a/sys/arch/alpha/include/lock.h Wed Jun 07 01:45:25 2000 +0000
+++ b/sys/arch/alpha/include/lock.h Wed Jun 07 01:49:13 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lock.h,v 1.6 2000/05/02 04:41:06 thorpej Exp $ */
+/* $NetBSD: lock.h,v 1.7 2000/06/07 01:49:13 simonb Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -124,7 +124,7 @@
: "=r" (t0), "=r" (v0), "=m" (*alp)
: "i" (__SIMPLELOCK_LOCKED), "2" (*alp));
- return (v0);
+ return (v0 != 0);
}
static __inline void
Home |
Main Index |
Thread Index |
Old Index