diff options
| author | mobash-rasool <mobash.rasool@gmail.com> | 2022-07-21 19:10:41 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-21 19:10:41 +0530 |
| commit | cb6c39645fae5211bd15b43a1b7879fb4c4b308c (patch) | |
| tree | 4a4cc74652f66cb92f24f0fab80fa9319a2ba15f /lib/hash.c | |
| parent | 87af90a765b697a944e4309a4b89c0a44b958435 (diff) | |
| parent | cb1991af8c3f09e28c90932cb36bd1d2c07375d6 (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.c | 4 |
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) { |
