diff options
| author | tron <tron@NetBSD.org> | 2008-05-07 10:16:41 +0000 |
|---|---|---|
| committer | tron <tron@NetBSD.org> | 2008-05-07 10:16:41 +0000 |
| commit | e70ab693a247414b2ca3153c8e265e7d3243e208 (patch) | |
| tree | 1a45b9c42184ae4f9d39e226a74157995a78ea96 /common/lib/libprop/prop_array.c | |
| parent | 2916b940f87a1cb26cbcefc4cbd51adc9812dbfb (diff) | |
Change the argument of _PROP_RWLOCK_TRYRDLOCK() to the lock member and not
its address to be consistent with all the other macros.
Diffstat (limited to 'common/lib/libprop/prop_array.c')
| -rw-r--r-- | common/lib/libprop/prop_array.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/lib/libprop/prop_array.c b/common/lib/libprop/prop_array.c index a1c30e5391d..706ee220738 100644 --- a/common/lib/libprop/prop_array.c +++ b/common/lib/libprop/prop_array.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop_array.c,v 1.15 2008/05/07 10:01:50 tron Exp $ */ +/* $NetBSD: prop_array.c,v 1.16 2008/05/07 10:16:41 tron Exp $ */ /*- * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc. @@ -315,7 +315,7 @@ _prop_array_iterator_next_object(void *v) bool acquired; _PROP_ASSERT(prop_object_is_array(pa)); - acquired = _PROP_RWLOCK_TRYRDLOCK(&pa->pa_rwlock); + acquired = _PROP_RWLOCK_TRYRDLOCK(pa->pa_rwlock); _PROP_RWLOCK_OWNED(pa->pa_rwlock); if (pa->pa_version != pai->pai_base.pi_version) @@ -344,7 +344,7 @@ _prop_array_iterator_reset(void *v) bool acquired; _PROP_ASSERT(prop_object_is_array(pa)); - acquired = _PROP_RWLOCK_TRYRDLOCK(&pa->pa_rwlock); + acquired = _PROP_RWLOCK_TRYRDLOCK(pa->pa_rwlock); _PROP_RWLOCK_OWNED(pa->pa_rwlock); pai->pai_index = 0; |
