Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys more const.
details: https://anonhg.NetBSD.org/src/rev/74de985f7bc5
branches: trunk
changeset: 356308:74de985f7bc5
user: christos <christos%NetBSD.org@localhost>
date: Sat Sep 16 23:30:50 2017 +0000
description:
more const.
diffstat:
sys/sys/common_lock.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r f46b06dd2fa1 -r 74de985f7bc5 sys/sys/common_lock.h
--- a/sys/sys/common_lock.h Sat Sep 16 23:25:34 2017 +0000
+++ b/sys/sys/common_lock.h Sat Sep 16 23:30:50 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: common_lock.h,v 1.1 2015/06/26 14:27:35 matt Exp $ */
+/* $NetBSD: common_lock.h,v 1.2 2017/09/16 23:30:50 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -38,13 +38,13 @@
#define _SYS_COMMON_LOCK_H_
static __inline int
-__SIMPLELOCK_LOCKED_P(__cpu_simple_lock_t *__ptr)
+__SIMPLELOCK_LOCKED_P(const __cpu_simple_lock_t *__ptr)
{
return *__ptr != __SIMPLELOCK_UNLOCKED;
}
static __inline int
-__SIMPLELOCK_UNLOCKED_P(__cpu_simple_lock_t *__ptr)
+__SIMPLELOCK_UNLOCKED_P(const __cpu_simple_lock_t *__ptr)
{
return *__ptr == __SIMPLELOCK_UNLOCKED;
}
Home |
Main Index |
Thread Index |
Old Index