public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* dlm: master - dlm_controld: fix header inclusion
@ 2009-06-09 17:32 Fabio M. Di Nitto
0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-06-09 17:32 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=c8a0c09ab027104babf5584b7552b2053c8f72ba
Commit: c8a0c09ab027104babf5584b7552b2053c8f72ba
Parent: 49e4c5b6db1b041f9424bd4e6b11cd924231c441
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Tue Jun 9 19:30:27 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Jun 9 19:30:27 2009 +0200
dlm_controld: fix header inclusion
remove #include "clusterautoconfig.h" from all .c files
and include it directly from dlm_daemon.h at the very top.
also make sure that dlm_daemon is always the first included
header.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
group/dlm_controld/action.c | 2 --
group/dlm_controld/config.c | 3 +--
group/dlm_controld/cpg.c | 2 --
group/dlm_controld/crc.c | 2 --
group/dlm_controld/deadlock.c | 2 --
group/dlm_controld/dlm_daemon.h | 2 ++
group/dlm_controld/logging.c | 2 --
group/dlm_controld/main.c | 2 --
group/dlm_controld/member_cman.c | 2 --
group/dlm_controld/netlink.c | 2 --
group/dlm_controld/pacemaker.c | 3 +--
group/dlm_controld/plock.c | 2 --
12 files changed, 4 insertions(+), 22 deletions(-)
diff --git a/group/dlm_controld/action.c b/group/dlm_controld/action.c
index 54faec1..e4180d4 100644
--- a/group/dlm_controld/action.c
+++ b/group/dlm_controld/action.c
@@ -1,5 +1,3 @@
-#include "clusterautoconfig.h"
-
#include "dlm_daemon.h"
#include "config.h"
diff --git a/group/dlm_controld/config.c b/group/dlm_controld/config.c
index bd7b672..fb75eee 100644
--- a/group/dlm_controld/config.c
+++ b/group/dlm_controld/config.c
@@ -1,4 +1,4 @@
-#include "clusterautoconfig.h"
+#include "dlm_daemon.h"
#include <sys/types.h>
#include <asm/types.h>
@@ -23,7 +23,6 @@
#include <unistd.h>
#include <dirent.h>
-#include "dlm_daemon.h"
#include "config.h"
#include "ccs.h"
diff --git a/group/dlm_controld/cpg.c b/group/dlm_controld/cpg.c
index 6eced07..43b36fd 100644
--- a/group/dlm_controld/cpg.c
+++ b/group/dlm_controld/cpg.c
@@ -1,5 +1,3 @@
-#include "clusterautoconfig.h"
-
#include "dlm_daemon.h"
#include "config.h"
diff --git a/group/dlm_controld/crc.c b/group/dlm_controld/crc.c
index 4cde27b..ff8c1d3 100644
--- a/group/dlm_controld/crc.c
+++ b/group/dlm_controld/crc.c
@@ -1,5 +1,3 @@
-#include "clusterautoconfig.h"
-
#include "dlm_daemon.h"
static const uint32_t crc_32_tab[] = {
diff --git a/group/dlm_controld/deadlock.c b/group/dlm_controld/deadlock.c
index d213b7e..4671c8c 100644
--- a/group/dlm_controld/deadlock.c
+++ b/group/dlm_controld/deadlock.c
@@ -1,5 +1,3 @@
-#include "clusterautoconfig.h"
-
#include "dlm_daemon.h"
#include "config.h"
#include "libdlm.h"
diff --git a/group/dlm_controld/dlm_daemon.h b/group/dlm_controld/dlm_daemon.h
index 5c64933..2acd7a6 100644
--- a/group/dlm_controld/dlm_daemon.h
+++ b/group/dlm_controld/dlm_daemon.h
@@ -1,6 +1,8 @@
#ifndef __DLM_DAEMON_DOT_H__
#define __DLM_DAEMON_DOT_H__
+#include "clusterautoconfig.h"
+
#include <sys/types.h>
#include <asm/types.h>
#include <sys/uio.h>
diff --git a/group/dlm_controld/logging.c b/group/dlm_controld/logging.c
index a77eb2c..cfcacb0 100644
--- a/group/dlm_controld/logging.c
+++ b/group/dlm_controld/logging.c
@@ -1,5 +1,3 @@
-#include "clusterautoconfig.h"
-
#include "dlm_daemon.h"
#include "config.h"
#include "ccs.h"
diff --git a/group/dlm_controld/main.c b/group/dlm_controld/main.c
index da6900c..a3cf7b4 100644
--- a/group/dlm_controld/main.c
+++ b/group/dlm_controld/main.c
@@ -1,5 +1,3 @@
-#include "clusterautoconfig.h"
-
#include "dlm_daemon.h"
#include "config.h"
#include <pthread.h>
diff --git a/group/dlm_controld/member_cman.c b/group/dlm_controld/member_cman.c
index a196b8b..6d2f0ca 100644
--- a/group/dlm_controld/member_cman.c
+++ b/group/dlm_controld/member_cman.c
@@ -1,5 +1,3 @@
-#include "clusterautoconfig.h"
-
#include "dlm_daemon.h"
#include "config.h"
#include <corosync/corotypes.h>
diff --git a/group/dlm_controld/netlink.c b/group/dlm_controld/netlink.c
index bdf329b..5a7c261 100644
--- a/group/dlm_controld/netlink.c
+++ b/group/dlm_controld/netlink.c
@@ -1,5 +1,3 @@
-#include "clusterautoconfig.h"
-
#include "dlm_daemon.h"
#include "config.h"
#include <linux/dlm.h>
diff --git a/group/dlm_controld/pacemaker.c b/group/dlm_controld/pacemaker.c
index 272270c..810c644 100644
--- a/group/dlm_controld/pacemaker.c
+++ b/group/dlm_controld/pacemaker.c
@@ -1,9 +1,8 @@
-#include "clusterautoconfig.h"
+#include "dlm_daemon.h"
#include <syslog.h>
#include "config.h"
-#include "dlm_daemon.h"
#include <glib.h>
#include <bzlib.h>
diff --git a/group/dlm_controld/plock.c b/group/dlm_controld/plock.c
index 5e978f9..957d749 100644
--- a/group/dlm_controld/plock.c
+++ b/group/dlm_controld/plock.c
@@ -1,5 +1,3 @@
-#include "clusterautoconfig.h"
-
#include "dlm_daemon.h"
#include "config.h"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-09 17:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-09 17:32 dlm: master - dlm_controld: fix header inclusion Fabio M. Di Nitto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).