From: Maria Matejka Date: Wed, 9 Mar 2022 12:27:49 +0000 (+0100) Subject: Fixed a static assert in page allocator X-Git-Tag: v3.0-alpha1~171^2~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36f5fea31a61d9067d81ffb1620fdf174f47d5e4;p=thirdparty%2Fbird.git Fixed a static assert in page allocator --- diff --git a/sysdep/unix/alloc.c b/sysdep/unix/alloc.c index 755b5fa54..edad62093 100644 --- a/sysdep/unix/alloc.c +++ b/sysdep/unix/alloc.c @@ -26,7 +26,7 @@ long page_size = 0; #define KEEP_PAGES_MAIN_MIN 8 #define CLEANUP_PAGES_BULK 256 -_Static_assert(KEEP_PAGES_MAIN_MIN * 4 < KEEP_PAGES_MAIN_MAX); +STATIC_ASSERT(KEEP_PAGES_MAIN_MIN * 4 < KEEP_PAGES_MAIN_MAX); static _Bool use_fake = 0;