]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fuzz: include library headers first
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Oct 2023 15:28:57 +0000 (00:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Oct 2023 16:54:07 +0000 (01:54 +0900)
src/libsystemd-network/fuzz-dhcp-client.c
src/libsystemd-network/fuzz-dhcp-server-relay.c
src/libsystemd-network/fuzz-dhcp-server.c

index 91e2ff7a51d41fb25efd2e6b14912f2508b74373..18f9f3dffe7a7f5e89c45cab468b7fe1e80f671f 100644 (file)
@@ -4,11 +4,10 @@
 #include <sys/socket.h>
 #include <unistd.h>
 
+#include "sd-dhcp-client.c"
+
 #include "alloc-util.h"
 #include "fuzz.h"
-#include "sd-event.h"
-
-#include "sd-dhcp-client.c"
 
 int dhcp_network_bind_raw_socket(
                 int ifindex,
index 3241d7c8daba1db73f7d98d2503e92a95ffcd9bf..55200038977266866d932f2e392da4f7fcb603e8 100644 (file)
@@ -4,10 +4,10 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 
-#include "fuzz.h"
-
 #include "sd-dhcp-server.c"
 
+#include "fuzz.h"
+
 ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen) {
         return len;
 }
index a294324cdee58b6a6c0391922728f43c019cdece..6be2f4b02ab58496c0102b4dd57a8c9c79da038b 100644 (file)
@@ -4,10 +4,10 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 
-#include "fuzz.h"
-
 #include "sd-dhcp-server.c"
 
+#include "fuzz.h"
+
 /* stub out network so that the server doesn't send */
 ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen) {
         return len;