summaryrefslogtreecommitdiff
path: root/lib/hash.c
diff options
context:
space:
mode:
authormobash-rasool <mobash.rasool@gmail.com>2022-07-21 19:10:41 +0530
committerGitHub <noreply@github.com>2022-07-21 19:10:41 +0530
commitcb6c39645fae5211bd15b43a1b7879fb4c4b308c (patch)
tree4a4cc74652f66cb92f24f0fab80fa9319a2ba15f /lib/hash.c
parent87af90a765b697a944e4309a4b89c0a44b958435 (diff)
parentcb1991af8c3f09e28c90932cb36bd1d2c07375d6 (diff)
Merge pull request #11654 from donaldsharp/fixup_macros
*: frr_with_mutex change to follow our standard
Diffstat (limited to 'lib/hash.c')
-rw-r--r--lib/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hash.c b/lib/hash.c
index e9132f7907..4b371b43ab 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -56,7 +56,7 @@ struct hash *hash_create_size(unsigned int size,
hash->name = name ? XSTRDUP(MTYPE_HASH, name) : NULL;
hash->stats.empty = hash->size;
- frr_with_mutex(&_hashes_mtx) {
+ frr_with_mutex (&_hashes_mtx) {
if (!_hashes)
_hashes = list_new();
@@ -329,7 +329,7 @@ struct list *hash_to_list(struct hash *hash)
void hash_free(struct hash *hash)
{
- frr_with_mutex(&_hashes_mtx) {
+ frr_with_mutex (&_hashes_mtx) {
if (_hashes) {
listnode_delete(_hashes, hash);
if (_hashes->count == 0) {