diff options
Diffstat (limited to 'proto/bfd/bfd.h')
-rw-r--r-- | proto/bfd/bfd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bfd/bfd.h b/proto/bfd/bfd.h index b3266857..ffb1c43f 100644 --- a/proto/bfd/bfd.h +++ b/proto/bfd/bfd.h @@ -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) */ |