fuzz: include library headers first

This commit is contained in:
Yu Watanabe
2023-10-21 01:54:07 +09:00
parent 7a876307bb
commit f3d84e20c9
3 changed files with 6 additions and 7 deletions
+2 -3
View 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,
@@ -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;
}
+2 -2
View 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;