aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-23 16:07:38 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-23 16:07:38 +0100
commitf6afde3c5dcece3b4980cebcde09a9ecca9e20d8 (patch)
tree48294a30843b08709d6c2dbdc1734a14e176c865 /tests
parentdd4d7e713290d9cecbebc6933e41d027bac63c8f (diff)
Move some unix header inclusions to compat.h
In most cases, including unistd.h and fcntl.h was a left over anyway. In the cases where it was not, move it to compat.h. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/str_table.c1
-rw-r--r--tests/tar_fuzz.c2
-rw-r--r--tests/tar_gnu.c2
-rw-r--r--tests/tar_pax.c2
-rw-r--r--tests/tar_sparse_gnu.c2
-rw-r--r--tests/tar_sparse_gnu1.c2
-rw-r--r--tests/tar_sparse_gnu2.c2
-rw-r--r--tests/tar_ustar.c2
-rw-r--r--tests/tar_xattr_bsd.c2
-rw-r--r--tests/tar_xattr_schily.c2
10 files changed, 0 insertions, 19 deletions
diff --git a/tests/str_table.c b/tests/str_table.c
index e4ac7a8..df4ca29 100644
--- a/tests/str_table.c
+++ b/tests/str_table.c
@@ -8,7 +8,6 @@
#include <stdlib.h>
#include <assert.h>
-#include <unistd.h>
#include <string.h>
#include <stdio.h>
diff --git a/tests/tar_fuzz.c b/tests/tar_fuzz.c
index 1a51da4..1284bde 100644
--- a/tests/tar_fuzz.c
+++ b/tests/tar_fuzz.c
@@ -9,10 +9,8 @@
#include "util/util.h"
#include "tar.h"
-#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
-#include <fcntl.h>
int main(int argc, char **argv)
{
diff --git a/tests/tar_gnu.c b/tests/tar_gnu.c
index 43ebccf..3df2855 100644
--- a/tests/tar_gnu.c
+++ b/tests/tar_gnu.c
@@ -9,11 +9,9 @@
#include "util/util.h"
#include "tar.h"
-#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
-#include <fcntl.h>
#include <stdio.h>
#define STR(x) #x
diff --git a/tests/tar_pax.c b/tests/tar_pax.c
index 475a7f1..50a6bf9 100644
--- a/tests/tar_pax.c
+++ b/tests/tar_pax.c
@@ -9,11 +9,9 @@
#include "util/util.h"
#include "tar.h"
-#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
-#include <fcntl.h>
#include <stdio.h>
#define STR(x) #x
diff --git a/tests/tar_sparse_gnu.c b/tests/tar_sparse_gnu.c
index b67171d..8776a09 100644
--- a/tests/tar_sparse_gnu.c
+++ b/tests/tar_sparse_gnu.c
@@ -9,11 +9,9 @@
#include "util/util.h"
#include "tar.h"
-#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
-#include <fcntl.h>
#include <stdio.h>
#define STR(x) #x
diff --git a/tests/tar_sparse_gnu1.c b/tests/tar_sparse_gnu1.c
index a9d90d4..4a2c2b9 100644
--- a/tests/tar_sparse_gnu1.c
+++ b/tests/tar_sparse_gnu1.c
@@ -9,11 +9,9 @@
#include "util/util.h"
#include "tar.h"
-#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
-#include <fcntl.h>
#include <stdio.h>
#define STR(x) #x
diff --git a/tests/tar_sparse_gnu2.c b/tests/tar_sparse_gnu2.c
index 6402c87..57508f8 100644
--- a/tests/tar_sparse_gnu2.c
+++ b/tests/tar_sparse_gnu2.c
@@ -9,11 +9,9 @@
#include "util/util.h"
#include "tar.h"
-#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
-#include <fcntl.h>
#include <stdio.h>
#define STR(x) #x
diff --git a/tests/tar_ustar.c b/tests/tar_ustar.c
index 8b9b453..d2b89f8 100644
--- a/tests/tar_ustar.c
+++ b/tests/tar_ustar.c
@@ -9,11 +9,9 @@
#include "util/util.h"
#include "tar.h"
-#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
-#include <fcntl.h>
#include <stdio.h>
#define STR(x) #x
diff --git a/tests/tar_xattr_bsd.c b/tests/tar_xattr_bsd.c
index 9a7eab2..39a73cc 100644
--- a/tests/tar_xattr_bsd.c
+++ b/tests/tar_xattr_bsd.c
@@ -9,11 +9,9 @@
#include "util/util.h"
#include "tar.h"
-#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
-#include <fcntl.h>
#include <stdio.h>
#define STR(x) #x
diff --git a/tests/tar_xattr_schily.c b/tests/tar_xattr_schily.c
index 7434a41..ba5bb2d 100644
--- a/tests/tar_xattr_schily.c
+++ b/tests/tar_xattr_schily.c
@@ -9,11 +9,9 @@
#include "util/util.h"
#include "tar.h"
-#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
-#include <fcntl.h>
#include <stdio.h>
#define STR(x) #x