Module Name: src Committed By: christos Date: Sat Sep 16 23:30:50 UTC 2017
Modified Files: src/sys/sys: common_lock.h Log Message: more const. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/sys/common_lock.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/common_lock.h diff -u src/sys/sys/common_lock.h:1.1 src/sys/sys/common_lock.h:1.2 --- src/sys/sys/common_lock.h:1.1 Fri Jun 26 10:27:35 2015 +++ src/sys/sys/common_lock.h Sat Sep 16 19:30:50 2017 @@ -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; }