aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/fuzz
diff options
context:
space:
mode:
Diffstat (limited to 'src/fuzz')
-rw-r--r--src/fuzz/Makefile10
-rw-r--r--src/fuzz/set.c1
-rw-r--r--src/fuzz/setconf.c1
3 files changed, 5 insertions, 7 deletions
diff --git a/src/fuzz/Makefile b/src/fuzz/Makefile
index eaa0eca..0f6ef2c 100644
--- a/src/fuzz/Makefile
+++ b/src/fuzz/Makefile
@@ -20,13 +20,13 @@ stringlist: stringlist.c ../ipc.c ../curve25519.c ../encoding.c
$(CC) $(CFLAGS) -o $@ $<
cmd: cmd.c $(wildcard ../*.c)
- $(CC) $(CFLAGS) -D'RUNSTATEDIR="/var/empty"' -D'main(a,b)=wg_main(a,b)' -o $@ $^ -lmnl
+ $(CC) $(CFLAGS) -D'RUNSTATEDIR="/var/empty"' -D'main(a,b)=wg_main(a,b)' -o $@ $^
-set: set.c ../set.c ../ipc.c ../encoding.c ../mnlg.c ../curve25519.c ../config.c
- $(CC) $(CFLAGS) -o $@ $< -lmnl
+set: set.c ../set.c ../ipc.c ../encoding.c ../curve25519.c ../config.c
+ $(CC) $(CFLAGS) -o $@ $<
-setconf: setconf.c ../setconf.c ../ipc.c ../encoding.c ../mnlg.c ../curve25519.c ../config.c
- $(CC) $(CFLAGS) -o $@ $< -lmnl
+setconf: setconf.c ../setconf.c ../ipc.c ../encoding.c ../curve25519.c ../config.c
+ $(CC) $(CFLAGS) -o $@ $<
clean:
$(RM) $(FUZZERS)
diff --git a/src/fuzz/set.c b/src/fuzz/set.c
index 22f953b..2f40615 100644
--- a/src/fuzz/set.c
+++ b/src/fuzz/set.c
@@ -15,7 +15,6 @@
static FILE *hacked_fopen(const char *pathname, const char *mode);
#define fopen hacked_fopen
#include "../config.c"
-#include "../mnlg.c"
#include "../set.c"
#undef stderr
diff --git a/src/fuzz/setconf.c b/src/fuzz/setconf.c
index 44bfeb9..1f2bd75 100644
--- a/src/fuzz/setconf.c
+++ b/src/fuzz/setconf.c
@@ -13,7 +13,6 @@
#undef parse_allowedips
#include "../encoding.c"
#include "../config.c"
-#include "../mnlg.c"
static FILE *hacked_fopen(const char *pathname, const char *mode);
#define fopen hacked_fopen
#include "../setconf.c"