Module Name: src Committed By: rin Date: Wed Jun 14 00:35:19 UTC 2023
Modified Files: src/common/lib/libprop: prop_dictionary.c Log Message: Sprinkle braces around _PROP_RWLOCK_UNLOCK() in ``if'' block. It is expanded into /* nothing */ for _STANDALONE. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/common/lib/libprop/prop_dictionary.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/common/lib/libprop/prop_dictionary.c diff -u src/common/lib/libprop/prop_dictionary.c:1.45 src/common/lib/libprop/prop_dictionary.c:1.46 --- src/common/lib/libprop/prop_dictionary.c:1.45 Wed Aug 3 21:13:46 2022 +++ src/common/lib/libprop/prop_dictionary.c Wed Jun 14 00:35:18 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: prop_dictionary.c,v 1.45 2022/08/03 21:13:46 riastradh Exp $ */ +/* $NetBSD: prop_dictionary.c,v 1.46 2023/06/14 00:35:18 rin Exp $ */ /*- * Copyright (c) 2006, 2007, 2020 The NetBSD Foundation, Inc. @@ -915,15 +915,17 @@ _prop_dictionary_get(prop_dictionary_t p if (! prop_object_is_dictionary(pd)) return (NULL); - if (!locked) + if (!locked) { _PROP_RWLOCK_RDLOCK(pd->pd_rwlock); + } pde = _prop_dict_lookup(pd, key, NULL); if (pde != NULL) { _PROP_ASSERT(pde->pde_objref != NULL); po = pde->pde_objref; } - if (!locked) + if (!locked) { _PROP_RWLOCK_UNLOCK(pd->pd_rwlock); + } return (po); } /*