]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: fix typo in rcu_do()
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 19 Jun 2024 20:32:54 +0000 (22:32 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 20 Jun 2024 09:04:09 +0000 (11:04 +0200)
I lost an underscore somewhere along the way.  Which never caused issues
because we don't use that function macro.  It is, however, useful for
testing, so fix it.

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

index 9f07a69b5226abb7ceb519fa6d8019036c3ed71f..81ab5528a9dd286063dc24c3af788f07911eaa70 100644 (file)
@@ -156,7 +156,7 @@ extern void rcu_enqueue(struct rcu_head *head, const struct rcu_action *action);
 #define rcu_call(func, ptr, field)                                             \
        do {                                                                   \
                typeof(ptr) _ptr = (ptr);                                      \
-               void (*fptype)(typeof(ptr));                                   \
+               void (*_fptype)(typeof(ptr));                                  \
                struct rcu_head *_rcu_head = &_ptr->field;                     \
                static const struct rcu_action _rcu_action = {                 \
                        .type = RCUA_CALL,                                     \