summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-02-26 15:43:09 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-02-26 15:43:09 +0000
commitfa80c91d51fef601051d6739260910433b1d8046 (patch)
treebae41f3c2e31e73eea2160c61374dfd665adee36 /sys
parent437401cbf361f082ceb0786857926ec9d61fd199 (diff)
Add SLOCK_INITIALIZER
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/simplelock.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/simplelock.h b/sys/sys/simplelock.h
index 127c898f16f..b78c210ecc9 100644
--- a/sys/sys/simplelock.h
+++ b/sys/sys/simplelock.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: simplelock.h,v 1.8 1999/07/09 15:17:59 art Exp $ */
+/* $OpenBSD: simplelock.h,v 1.9 2001/02/26 15:43:08 art Exp $ */
#ifndef _SIMPLELOCK_H_
#define _SIMPLELOCK_H_
@@ -24,6 +24,8 @@ struct simplelock {
#define SLOCK_LOCKED 1
#define SLOCK_UNLOCKED 0
+#define SLOCK_INITIALIZER { SLOCK_UNLOCKED }
+
/*
* We can't debug locks when we use them in real life.
*/