Просмотр исходного кода

votequorum/quorum-tools: drop unnecessary includes

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Fabio M. Di Nitto 14 лет назад
Родитель
Сommit
2003a87eb0
3 измененных файлов с 0 добавлено и 33 удалено
  1. 0 1
      include/corosync/ipc_votequorum.h
  2. 0 22
      services/votequorum.c
  3. 0 10
      tools/corosync-quorumtool.c

+ 0 - 1
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
 

+ 0 - 22
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>

+ 0 - 10
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>