[PATCH 2/3] votequorum/quorum-tools: drop unnecessary includes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>

Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx>
---
:100644 100644 448edc3... 8a59d09... M	include/corosync/ipc_votequorum.h
:100644 100644 7fc6881... 96ca5b4... M	services/votequorum.c
:100644 100644 f0ee165... b71654c... M	tools/corosync-quorumtool.c
 include/corosync/ipc_votequorum.h |    1 -
 services/votequorum.c             |   22 ----------------------
 tools/corosync-quorumtool.c       |   10 ----------
 3 files changed, 0 insertions(+), 33 deletions(-)

diff --git a/include/corosync/ipc_votequorum.h b/include/corosync/ipc_votequorum.h
index 448edc3..8a59d09 100644
--- a/include/corosync/ipc_votequorum.h
+++ b/include/corosync/ipc_votequorum.h
@@ -35,7 +35,6 @@
 #ifndef IPC_VOTEQUORUM_H_DEFINED
 #define IPC_VOTEQUORUM_H_DEFINED
 
-#include <corosync/corotypes.h>
 #include <corosync/mar_gen.h>
 #define VOTEQUORUM_MAX_QDISK_NAME_LEN 255
 
diff --git a/services/votequorum.c b/services/votequorum.c
index 7fc6881..96ca5b4 100644
--- a/services/votequorum.c
+++ b/services/votequorum.c
@@ -36,37 +36,15 @@
 #include <config.h>
 
 #include <sys/types.h>
-#ifdef HAVE_ALLOCA_H
-#include <alloca.h>
-#endif
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <sys/time.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <sys/uio.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <time.h>
-#include <unistd.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
 
 #include <qb/qbipc_common.h>
 #include <qb/qbdefs.h>
 #include <qb/qbutil.h>
 
-#include <corosync/corotypes.h>
 #include <corosync/corodefs.h>
-#include <corosync/cfg.h>
 #include <corosync/list.h>
 #include <corosync/lcr/lcr_comp.h>
 #include <corosync/logsys.h>
-#include <corosync/mar_gen.h>
 #include <corosync/coroapi.h>
 #include <corosync/engine/quorum.h>
 #include <corosync/icmap.h>
diff --git a/tools/corosync-quorumtool.c b/tools/corosync-quorumtool.c
index f0ee165..b71654c 100644
--- a/tools/corosync-quorumtool.c
+++ b/tools/corosync-quorumtool.c
@@ -36,21 +36,11 @@
 #include <config.h>
 
 #include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <unistd.h>
 #include <string.h>
-#include <pthread.h>
-#include <inttypes.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/select.h>
-#include <sys/un.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
 #include <netdb.h>
 
-#include <corosync/corotypes.h>
 #include <corosync/totem/totem.h>
 #include <corosync/cfg.h>
 #include <corosync/cmap.h>
-- 
1.7.7.5

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux