fuzz: include library headers first
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user