X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vnet%2Fvnet%2Ffib%2Ffib_entry.h;h=39b2083ea9a07e5600250901d155df49aacd0084;hb=cf4789498d077a2733055b0144c5a4ea2e33d95f;hp=2b7ea636acb5fbd8f6eff482073baa3a978523a7;hpb=948e00ff5eded0806fc7f54e8f3943aade2bd14a;p=vpp.git diff --git a/vnet/vnet/fib/fib_entry.h b/vnet/vnet/fib/fib_entry.h index 2b7ea636acb..39b2083ea9a 100644 --- a/vnet/vnet/fib/fib_entry.h +++ b/vnet/vnet/fib/fib_entry.h @@ -120,8 +120,8 @@ typedef enum fib_source_t_ { FIB_SOURCE_LAST = FIB_SOURCE_DEFAULT_ROUTE, } __attribute__ ((packed)) fib_source_t; -_Static_assert (sizeof(fib_source_t) == 1, - "FIB too many sources"); +STATIC_ASSERT (sizeof(fib_source_t) == 1, + "FIB too many sources"); /** * The maximum number of sources @@ -260,8 +260,8 @@ typedef enum fib_entry_src_flag_t_ { * Keep the size of the flags field to 2 bytes, so it * can be placed next to the 2 bytes reference count */ -_Static_assert (sizeof(fib_entry_src_flag_t) <= 2, - "FIB entry flags field size too big"); +STATIC_ASSERT (sizeof(fib_entry_src_flag_t) <= 2, + "FIB entry flags field size too big"); /** * Information related to the source of a FIB entry