[CRIU] [PATCH 5/6] Remove unused #include <dirent.h>
Radostin Stoyanov
rstoyanov1 at gmail.com
Sat Nov 10 00:51:25 MSK 2018
Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
criu/cr-restore.c | 1 -
criu/fsnotify.c | 1 -
criu/uffd.c | 1 -
test/others/rpc/test-c.c | 1 -
test/zdtm/static/inotify00.c | 1 -
test/zdtm/static/inotify02.c | 1 -
test/zdtm/static/mntns_ro_root.c | 1 -
test/zdtm/static/netns-dev.c | 1 -
8 files changed, 8 deletions(-)
diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index ab82441b..d21a6015 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -4,7 +4,6 @@
#include <limits.h>
#include <unistd.h>
#include <errno.h>
-#include <dirent.h>
#include <string.h>
#include <fcntl.h>
diff --git a/criu/fsnotify.c b/criu/fsnotify.c
index 41b33765..ed8a67a2 100644
--- a/criu/fsnotify.c
+++ b/criu/fsnotify.c
@@ -6,7 +6,6 @@
#include <signal.h>
#include <string.h>
#include <utime.h>
-#include <dirent.h>
#include <limits.h>
#include <sys/stat.h>
#include <sys/types.h>
diff --git a/criu/uffd.c b/criu/uffd.c
index 38488910..d0a4ed5a 100644
--- a/criu/uffd.c
+++ b/criu/uffd.c
@@ -1,7 +1,6 @@
#include <stddef.h>
#include <stdio.h>
#include <errno.h>
-#include <dirent.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
diff --git a/test/others/rpc/test-c.c b/test/others/rpc/test-c.c
index f210a973..751f9ba9 100644
--- a/test/others/rpc/test-c.c
+++ b/test/others/rpc/test-c.c
@@ -6,7 +6,6 @@
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
-#include <dirent.h>
#include <unistd.h>
#define MAX_MSG_SIZE 1024
diff --git a/test/zdtm/static/inotify00.c b/test/zdtm/static/inotify00.c
index 3c7cab0a..67088edd 100644
--- a/test/zdtm/static/inotify00.c
+++ b/test/zdtm/static/inotify00.c
@@ -11,7 +11,6 @@
#include <sys/inotify.h>
#include <unistd.h>
#include <stdlib.h>
-#include <dirent.h>
#include <signal.h>
#include <sched.h>
#include <sys/mount.h>
diff --git a/test/zdtm/static/inotify02.c b/test/zdtm/static/inotify02.c
index 9b343a87..b1b75d2e 100644
--- a/test/zdtm/static/inotify02.c
+++ b/test/zdtm/static/inotify02.c
@@ -11,7 +11,6 @@
#include <sys/inotify.h>
#include <unistd.h>
#include <stdlib.h>
-#include <dirent.h>
#include <signal.h>
#include <sched.h>
#include <sys/mount.h>
diff --git a/test/zdtm/static/mntns_ro_root.c b/test/zdtm/static/mntns_ro_root.c
index 8415eec3..8a797101 100644
--- a/test/zdtm/static/mntns_ro_root.c
+++ b/test/zdtm/static/mntns_ro_root.c
@@ -11,7 +11,6 @@
#include <stdlib.h>
#include <limits.h>
#include <sys/mount.h>
-#include <dirent.h>
#include "zdtmtst.h"
diff --git a/test/zdtm/static/netns-dev.c b/test/zdtm/static/netns-dev.c
index 8763773c..46bb9063 100644
--- a/test/zdtm/static/netns-dev.c
+++ b/test/zdtm/static/netns-dev.c
@@ -1,6 +1,5 @@
#include <unistd.h>
#include <stdlib.h>
-#include <dirent.h>
#include <linux/limits.h>
#include "zdtmtst.h"
--
2.17.2
More information about the CRIU
mailing list