Commit cc737266 authored by Maria Matejka's avatar Maria Matejka
Browse files

Compilation fixes for CLang

parent fe840dda
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ static struct {
  list proto_list;
} 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" };

+1 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ struct bfd_session

  _Atomic struct bfd_session_state loc;
  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 rem_id;				/* Remote session ID (remote discriminator) */