summaryrefslogtreecommitdiff
path: root/fuzzers
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-06-28 10:53:03 +0200
committerPatrick Steinhardt <ps@pks.im>2019-07-05 11:58:33 +0200
commit3c966fb4fb7801a32b785615eb3b815a62b4e0db (patch)
tree598f7c19401b95f0039f9cffc58b6c69b1968541 /fuzzers
parent9d43d45b21ef45895a5b7f10d690ec8543e07709 (diff)
downloadlibgit2-3c966fb4fb7801a32b785615eb3b815a62b4e0db.tar.gz
fuzzers: clean up header includes
There's multiple headers included in our fuzzers that aren't required at all. Furthermore, some of them are not available on Win32, causing builds to fail. Remove them to fix this.
Diffstat (limited to 'fuzzers')
-rw-r--r--fuzzers/config_file_fuzzer.c8
-rw-r--r--fuzzers/download_refs_fuzzer.c4
-rw-r--r--fuzzers/packfile_fuzzer.c4
-rw-r--r--fuzzers/standalone_driver.c4
4 files changed, 2 insertions, 18 deletions
diff --git a/fuzzers/config_file_fuzzer.c b/fuzzers/config_file_fuzzer.c
index fa52642ae..526c93928 100644
--- a/fuzzers/config_file_fuzzer.c
+++ b/fuzzers/config_file_fuzzer.c
@@ -7,15 +7,9 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
-#include <git2.h>
+#include "git2.h"
#include "config_backend.h"
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <limits.h>
-#include <errno.h>
-
#define UNUSED(x) (void)(x)
int foreach_cb(const git_config_entry *entry, void *payload)
diff --git a/fuzzers/download_refs_fuzzer.c b/fuzzers/download_refs_fuzzer.c
index 2b70dd053..facfaa22e 100644
--- a/fuzzers/download_refs_fuzzer.c
+++ b/fuzzers/download_refs_fuzzer.c
@@ -7,11 +7,9 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
-#include <string.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <stdio.h>
-#include <unistd.h>
#include "git2.h"
#include "git2/sys/transport.h"
diff --git a/fuzzers/packfile_fuzzer.c b/fuzzers/packfile_fuzzer.c
index 672f5577a..50c115755 100644
--- a/fuzzers/packfile_fuzzer.c
+++ b/fuzzers/packfile_fuzzer.c
@@ -7,11 +7,7 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
-#include <stdbool.h>
-#include <stdint.h>
#include <stdio.h>
-#include <limits.h>
-#include <unistd.h>
#include "git2.h"
#include "git2/sys/mempack.h"
diff --git a/fuzzers/standalone_driver.c b/fuzzers/standalone_driver.c
index e8ce3fd07..c66197039 100644
--- a/fuzzers/standalone_driver.c
+++ b/fuzzers/standalone_driver.c
@@ -5,11 +5,7 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
-#include <assert.h>
-#include <dirent.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
#include "git2.h"
#include "fileops.h"