mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 15:41:54 +00:00
Compilation fixes for CLang
This commit is contained in:
parent
fe840ddad9
commit
cc73726620
@ -124,7 +124,7 @@ static struct {
|
|||||||
list proto_list;
|
list proto_list;
|
||||||
} bfd_global;
|
} bfd_global;
|
||||||
|
|
||||||
static struct bfd_session bfd_admin_down = { .loc = { .state = BFD_STATE_ADMIN_DOWN }, };
|
static struct bfd_session bfd_admin_down = { .loc = ATOMIC_VAR_INIT((struct bfd_session_state) { .state = BFD_STATE_ADMIN_DOWN }), };
|
||||||
|
|
||||||
const char *bfd_state_names[] = { "AdminDown", "Down", "Init", "Up" };
|
const char *bfd_state_names[] = { "AdminDown", "Down", "Init", "Up" };
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ struct bfd_session
|
|||||||
|
|
||||||
_Atomic struct bfd_session_state loc;
|
_Atomic struct bfd_session_state loc;
|
||||||
struct bfd_session_state rem;
|
struct bfd_session_state rem;
|
||||||
#define BFD_LOC_STATE(s) atomic_load_explicit(&(s)->loc, memory_order_relaxed)
|
#define BFD_LOC_STATE(s) ({ struct bfd_session_state _bss = atomic_load_explicit(&(s)->loc, memory_order_relaxed); _bss; })
|
||||||
|
|
||||||
u32 loc_id; /* Local session ID (local discriminator) */
|
u32 loc_id; /* Local session ID (local discriminator) */
|
||||||
u32 rem_id; /* Remote session ID (remote discriminator) */
|
u32 rem_id; /* Remote session ID (remote discriminator) */
|
||||||
|
Loading…
Reference in New Issue
Block a user