]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd-network/test-acd.c
tree-wide: make sure net/if.h is included before any linux/ header
[thirdparty/systemd.git] / src / libsystemd-network / test-acd.c
index f4aab85ed40b47d87044a92801a5ed7be1b90bd0..6ed7260a72bec8cd0496379e3b3a5466aa6f0e4a 100644 (file)
@@ -1,20 +1,19 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+/* Make sure the net/if.h header is included before any linux/ one */
+#include <net/if.h>
 #include <errno.h>
+#include <linux/veth.h>
 #include <stdlib.h>
 #include <unistd.h>
 
-#include <linux/veth.h>
-#include <net/if.h>
 
 #include "sd-event.h"
 #include "sd-ipv4acd.h"
 #include "sd-netlink.h"
 
 #include "in-addr-util.h"
-#include "netlink-util.h"
 #include "tests.h"
-#include "util.h"
 
 static void acd_handler(sd_ipv4acd *acd, int event, void *userdata) {
         assert_se(acd);
@@ -30,7 +29,7 @@ static void acd_handler(sd_ipv4acd *acd, int event, void *userdata) {
                 log_error("the client was stopped");
                 break;
         default:
-                assert_not_reached("invalid ACD event");
+                assert_not_reached();
         }
 }