From dd942eaa480a0744fd64844f34233900a0da6893 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 21 Oct 2021 04:26:08 +0200 Subject: passt: Fix build with gcc 7, use std=c99, enable some more Clang checkers Unions and structs, you all have names now. Take the chance to enable bugprone-reserved-identifier, cert-dcl37-c, and cert-dcl51-cpp checkers in clang-tidy. Provide a ffsl() weak declaration using gcc built-in. Start reordering includes, but that's not enough for the llvm-include-order checker yet. Signed-off-by: Stefano Brivio --- conf.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 13d3dc6..7dd213d 100644 --- a/conf.c +++ b/conf.c @@ -14,32 +14,30 @@ * #syscalls stat */ -#define _GNU_SOURCE -#include +#include +#include +#include #include #include -#include +#include #include #include -#include -#include #include #include #include #include #include #include -#include #include -#include -#include -#include +#include + +#include #include "util.h" #include "passt.h" +#include "netlink.h" #include "udp.h" #include "tcp.h" -#include "netlink.h" #include "pasta.h" /** -- cgit v1.2.3