summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-12-04 21:56:18 +0000
committermillert <millert@openbsd.org>2001-12-04 21:56:18 +0000
commit7d5d34f0ab1449de567b1840e301768c48591dc4 (patch)
treee1afe4ce941ab7753464315788b40842cb342514
parentcgthree man page (diff)
downloadwireguard-openbsd-7d5d34f0ab1449de567b1840e301768c48591dc4.tar.xz
wireguard-openbsd-7d5d34f0ab1449de567b1840e301768c48591dc4.zip
Add declaration of "state" to _simple_lock_assert(). Since it is
an int this can safely be omitted but it is bad style to do so. Closes PR 2223.
-rw-r--r--sys/kern/kern_lock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 1da1663f8d0..9e8a47d59ba 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_lock.c,v 1.10 2001/11/07 02:44:10 art Exp $ */
+/* $OpenBSD: kern_lock.c,v 1.11 2001/12/04 21:56:18 millert Exp $ */
/*
* Copyright (c) 1995
@@ -526,6 +526,7 @@ _simple_unlock(lkp, id, l)
void
_simple_lock_assert(lkp, state, id, l)
__volatile struct simplelock *lkp;
+ int state;
const char *id;
int l;
{