]> git.puffer.fish Git - matthieu/frr.git/commit
lib: don't shadow `_once` in `frr_with_mutex`
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 28 Jan 2025 01:58:09 +0000 (02:58 +0100)
committerMark Stapp <mjs@cisco.com>
Tue, 8 Apr 2025 18:41:26 +0000 (14:41 -0400)
commitd683c4d8de15bb446247909cbe97e3cd19c2e0fb
treee7d6e1c89ffb226107e816592e673cd14060ecf4
parent05446a2961b251ea66e442892fade4118c634a54
lib: don't shadow `_once` in `frr_with_mutex`

The `_once` loop variable will result in a `-Wshadow` warning when that
is turned on.  Use `__COUNTER__` to give these variables distinct names,
like is already done with `_mtx_`.

(and because I touched it, clang-format wants it reformatted... ohwell.)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/frr_pthread.h