Blob Blame History Raw
From d6c7ade277a4a23d84c56d7fde6b60b377a1023b Mon Sep 17 00:00:00 2001
From: Takeshi MIZUTA <miz.take4@gmail.com>
Date: Mon, 5 Dec 2016 01:23:46 +0900
Subject: [PATCH] Remove redundant header file inclusion

Signed-off-by: Takeshi MIZUTA <miz.take4@gmail.com>
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
(rebased from commit 4939c75629cf9ecb2c03ee28645c9c18c858cfa9)
---
 cts/agents/common_test_agent.c |    1 -
 cts/agents/cpg_test_agent.c    |    1 -
 exec/cmap.c                    |    1 -
 exec/cpg.c                     |    2 --
 exec/quorum.c                  |    2 --
 exec/sync.c                    |    2 --
 exec/vsf_quorum.c              |    1 -
 qdevices/tlv.c                 |    1 -
 test/cpgbench.c                |    1 -
 test/cpgbenchzc.c              |    2 --
 test/cpghum.c                  |    1 -
 tools/corosync-notifyd.c       |    3 ---
 12 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/cts/agents/common_test_agent.c b/cts/agents/common_test_agent.c
index 67d76c1..e395c31 100644
--- a/cts/agents/common_test_agent.c
+++ b/cts/agents/common_test_agent.c
@@ -44,7 +44,6 @@
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <poll.h>
-#include <unistd.h>
 #include <fcntl.h>
 
 #include "common_test_agent.h"
diff --git a/cts/agents/cpg_test_agent.c b/cts/agents/cpg_test_agent.c
index a52f4f0..0837c69 100644
--- a/cts/agents/cpg_test_agent.c
+++ b/cts/agents/cpg_test_agent.c
@@ -44,7 +44,6 @@
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <poll.h>
-#include <unistd.h>
 #include <fcntl.h>
 
 #include <corosync/list.h>
diff --git a/exec/cmap.c b/exec/cmap.c
index ba4c798..950a76f 100644
--- a/exec/cmap.c
+++ b/exec/cmap.c
@@ -39,7 +39,6 @@
 #include <fcntl.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <unistd.h>
 #include <poll.h>
 #include <assert.h>
 
diff --git a/exec/cpg.c b/exec/cpg.c
index 5bd830f..78ac1e9 100644
--- a/exec/cpg.c
+++ b/exec/cpg.c
@@ -51,8 +51,6 @@
 #include <errno.h>
 #include <time.h>
 #include <assert.h>
-#include <unistd.h>
-#include <netinet/in.h>
 #include <arpa/inet.h>
 #include <sys/mman.h>
 #include <qb/qbmap.h>
diff --git a/exec/quorum.c b/exec/quorum.c
index d4837a2..323a15f 100644
--- a/exec/quorum.c
+++ b/exec/quorum.c
@@ -46,8 +46,6 @@
 #include <stdio.h>
 #include <errno.h>
 #include <time.h>
-#include <unistd.h>
-#include <netinet/in.h>
 #include <arpa/inet.h>
 
 #include <corosync/corotypes.h>
diff --git a/exec/sync.c b/exec/sync.c
index ea452e6..283634a 100644
--- a/exec/sync.c
+++ b/exec/sync.c
@@ -45,8 +45,6 @@
 #include <stdio.h>
 #include <errno.h>
 #include <time.h>
-#include <unistd.h>
-#include <netinet/in.h>
 #include <arpa/inet.h>
 
 #include <corosync/corotypes.h>
diff --git a/exec/vsf_quorum.c b/exec/vsf_quorum.c
index e268dea..4bf3b0a 100644
--- a/exec/vsf_quorum.c
+++ b/exec/vsf_quorum.c
@@ -62,7 +62,6 @@
 #include <corosync/list.h>
 #include <corosync/mar_gen.h>
 #include <corosync/ipc_quorum.h>
-#include <corosync/mar_gen.h>
 #include <corosync/coroapi.h>
 #include <corosync/logsys.h>
 #include <corosync/icmap.h>
diff --git a/qdevices/tlv.c b/qdevices/tlv.c
index a7eae95..5b45869 100644
--- a/qdevices/tlv.c
+++ b/qdevices/tlv.c
@@ -47,7 +47,6 @@
 #elif defined(__FreeBSD__) || defined(__NetBSD__)
 #include <sys/endian.h>
 #elif defined(__OpenBSD__)
-#include <sys/types.h>
 #define be64toh(x) betoh64(x)
 #endif
 
diff --git a/test/cpgbench.c b/test/cpgbench.c
index 23fc2b0..059effe 100644
--- a/test/cpgbench.c
+++ b/test/cpgbench.c
@@ -40,7 +40,6 @@
 #include <signal.h>
 #include <unistd.h>
 #include <errno.h>
-#include <unistd.h>
 #include <time.h>
 #include <sys/time.h>
 #include <sys/types.h>
diff --git a/test/cpgbenchzc.c b/test/cpgbenchzc.c
index db78289..92f55ee 100644
--- a/test/cpgbenchzc.c
+++ b/test/cpgbenchzc.c
@@ -40,14 +40,12 @@
 #include <signal.h>
 #include <unistd.h>
 #include <errno.h>
-#include <unistd.h>
 #include <time.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/select.h>
 #include <sys/un.h>
-#include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
diff --git a/test/cpghum.c b/test/cpghum.c
index 5772f81..006bf45 100644
--- a/test/cpghum.c
+++ b/test/cpghum.c
@@ -38,7 +38,6 @@
 #include <signal.h>
 #include <unistd.h>
 #include <errno.h>
-#include <unistd.h>
 #include <time.h>
 #include <sys/time.h>
 #include <sys/types.h>
diff --git a/tools/corosync-notifyd.c b/tools/corosync-notifyd.c
index 507a248..8f37a30 100644
--- a/tools/corosync-notifyd.c
+++ b/tools/corosync-notifyd.c
@@ -54,9 +54,6 @@
 #include <qb/qbloop.h>
 #include <qb/qblog.h>
 
-#include <qb/qbdefs.h>
-#include <qb/qbloop.h>
-
 #include <corosync/corotypes.h>
 #include <corosync/cfg.h>
 #include <corosync/quorum.h>
-- 
1.7.1