Module Name:    src
Committed By:   christos
Date:           Sat Sep 16 23:55:45 UTC 2017

Modified Files:
        src/sys/arch/x86/include: lock.h

Log Message:
more const


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/x86/include/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/arch/x86/include/lock.h
diff -u src/sys/arch/x86/include/lock.h:1.27 src/sys/arch/x86/include/lock.h:1.28
--- src/sys/arch/x86/include/lock.h:1.27	Tue Jan 22 17:09:44 2013
+++ src/sys/arch/x86/include/lock.h	Sat Sep 16 19:55:45 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: lock.h,v 1.27 2013/01/22 22:09:44 christos Exp $	*/
+/*	$NetBSD: lock.h,v 1.28 2017/09/16 23:55:45 christos Exp $	*/
 
 /*-
  * Copyright (c) 2000, 2006 The NetBSD Foundation, Inc.
@@ -39,13 +39,13 @@
 #include <sys/param.h>
 
 static __inline int
-__SIMPLELOCK_LOCKED_P(__cpu_simple_lock_t *__ptr)
+__SIMPLELOCK_LOCKED_P(const __cpu_simple_lock_t *__ptr)
 {
 	return *__ptr == __SIMPLELOCK_LOCKED;
 }
 
 static __inline int
-__SIMPLELOCK_UNLOCKED_P(__cpu_simple_lock_t *__ptr)
+__SIMPLELOCK_UNLOCKED_P(const __cpu_simple_lock_t *__ptr)
 {
 	return *__ptr == __SIMPLELOCK_UNLOCKED;
 }

Reply via email to