diff options
| author | Niels de Vos <ndevos@redhat.com> | 2015-05-18 16:26:02 +0200 |
|---|---|---|
| committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-05-29 05:43:17 -0700 |
| commit | 8a9328e37b8c63d60583184dc8dab12f85810682 (patch) | |
| tree | 0fa017379bf5e9dfaa2e6d8132c73cc1090a3d52 /libglusterfs/src | |
| parent | 5d912230a7d4f9979c10ff15da724624bd8e069d (diff) | |
build: do not #include "config.h" in each file
Instead of including config.h in each file, and have the additional
config.h included from the compiler commandline (-include option).
When a .c file tests for a certain #define, and config.h was not
included, incorrect assumtions were made. With this change, it can not
happen again.
BUG: 1222319
Change-Id: I4f9097b8740b81ecfe8b218d52ca50361f74cb64
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/10808
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src')
61 files changed, 0 insertions, 305 deletions
diff --git a/libglusterfs/src/call-stub.c b/libglusterfs/src/call-stub.c index 128dcf9e15..911ea33490 100644 --- a/libglusterfs/src/call-stub.c +++ b/libglusterfs/src/call-stub.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <openssl/md5.h> #include <inttypes.h> diff --git a/libglusterfs/src/call-stub.h b/libglusterfs/src/call-stub.h index 954338be91..af4a2f55af 100644 --- a/libglusterfs/src/call-stub.h +++ b/libglusterfs/src/call-stub.h @@ -11,11 +11,6 @@ #ifndef _CALL_STUB_H_ #define _CALL_STUB_H_ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "xlator.h" #include "defaults.h" #include "stack.h" diff --git a/libglusterfs/src/client_t.c b/libglusterfs/src/client_t.c index 84257e66b0..9e6c90eba4 100644 --- a/libglusterfs/src/client_t.c +++ b/libglusterfs/src/client_t.c @@ -16,11 +16,6 @@ #include "rpcsvc.h" -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - static int gf_client_chain_client_entries (cliententry_t *entries, uint32_t startidx, uint32_t endcount) diff --git a/libglusterfs/src/client_t.h b/libglusterfs/src/client_t.h index 64c0514c8a..bfea62061b 100644 --- a/libglusterfs/src/client_t.h +++ b/libglusterfs/src/client_t.h @@ -11,11 +11,6 @@ #ifndef _CLIENT_T_H #define _CLIENT_T_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "glusterfs.h" #include "locking.h" /* for gf_lock_t, not included by glusterfs.h */ diff --git a/libglusterfs/src/cluster-syncop.h b/libglusterfs/src/cluster-syncop.h index a681951c27..3712259c65 100644 --- a/libglusterfs/src/cluster-syncop.h +++ b/libglusterfs/src/cluster-syncop.h @@ -12,11 +12,6 @@ #ifndef _CLUSTER_SYNCOP_H #define _CLUSTER_SYNCOP_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "xlator.h" #include <sys/time.h> #include <pthread.h> diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index 4bcef6ae33..bda336e348 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #ifdef HAVE_BACKTRACE #include <execinfo.h> #else diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index c361405d5e..6691259f51 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -11,11 +11,6 @@ #ifndef _COMMON_UTILS_H #define _COMMON_UTILS_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <stdint.h> #include <sys/uio.h> #include <netdb.h> diff --git a/libglusterfs/src/compat-errno.c b/libglusterfs/src/compat-errno.c index d8ab82a5d2..3674596ad7 100644 --- a/libglusterfs/src/compat-errno.c +++ b/libglusterfs/src/compat-errno.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <stdint.h> #include "compat-errno.h" diff --git a/libglusterfs/src/compat-errno.h b/libglusterfs/src/compat-errno.h index 65e52081dd..6f46157e69 100644 --- a/libglusterfs/src/compat-errno.h +++ b/libglusterfs/src/compat-errno.h @@ -11,11 +11,6 @@ #ifndef __COMPAT_ERRNO_H__ #define __COMPAT_ERRNO_H__ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <errno.h> #define GF_ERROR_CODE_SUCCESS 0 diff --git a/libglusterfs/src/compat.c b/libglusterfs/src/compat.c index 93e7b45a69..0538a3298c 100644 --- a/libglusterfs/src/compat.c +++ b/libglusterfs/src/compat.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <string.h> #include <stdlib.h> #include <unistd.h> diff --git a/libglusterfs/src/compat.h b/libglusterfs/src/compat.h index 1522257dff..458a751c2f 100644 --- a/libglusterfs/src/compat.h +++ b/libglusterfs/src/compat.h @@ -11,11 +11,6 @@ #ifndef __COMPAT_H__ #define __COMPAT_H__ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <stdint.h> #include "dict.h" diff --git a/libglusterfs/src/ctx.c b/libglusterfs/src/ctx.c index aa9d4216fd..c70d97bc5d 100644 --- a/libglusterfs/src/ctx.c +++ b/libglusterfs/src/ctx.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif /* !_CONFIG_H */ - #include <pthread.h> #include "globals.h" diff --git a/libglusterfs/src/daemon.h b/libglusterfs/src/daemon.h index 80836a326d..95e134b78b 100644 --- a/libglusterfs/src/daemon.h +++ b/libglusterfs/src/daemon.h @@ -11,11 +11,6 @@ #ifndef _DAEMON_H #define _DAEMON_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #define DEVNULLPATH "/dev/null" int os_daemon_return(int nochdir, int noclose); diff --git a/libglusterfs/src/defaults.c b/libglusterfs/src/defaults.c index 1414da9073..b7174c8a93 100644 --- a/libglusterfs/src/defaults.c +++ b/libglusterfs/src/defaults.c @@ -20,11 +20,6 @@ All the functions are plain enough to understand. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "xlator.h" #include "defaults.h" diff --git a/libglusterfs/src/defaults.h b/libglusterfs/src/defaults.h index a4ec762540..68d23974b3 100644 --- a/libglusterfs/src/defaults.h +++ b/libglusterfs/src/defaults.h @@ -15,11 +15,6 @@ #ifndef _DEFAULTS_H #define _DEFAULTS_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "xlator.h" typedef struct { diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index ffc92e7272..23e25b16ed 100644 --- a/libglusterfs/src/dict.c +++ b/libglusterfs/src/dict.c @@ -16,11 +16,6 @@ #include <limits.h> #include <fnmatch.h> -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "glusterfs.h" #include "common-utils.h" #include "dict.h" diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h index a9004e96a5..46cb2a3ca5 100644 --- a/libglusterfs/src/dict.h +++ b/libglusterfs/src/dict.h @@ -11,11 +11,6 @@ #ifndef _DICT_H #define _DICT_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <inttypes.h> #include <sys/uio.h> #include <pthread.h> diff --git a/libglusterfs/src/event-epoll.c b/libglusterfs/src/event-epoll.c index 92420f3734..9703fdc0f3 100644 --- a/libglusterfs/src/event-epoll.c +++ b/libglusterfs/src/event-epoll.c @@ -21,11 +21,6 @@ #include "mem-pool.h" #include "common-utils.h" -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #ifdef HAVE_SYS_EPOLL_H #include <sys/epoll.h> diff --git a/libglusterfs/src/event-history.h b/libglusterfs/src/event-history.h index b64f63b5eb..de5d47cdfe 100644 --- a/libglusterfs/src/event-history.h +++ b/libglusterfs/src/event-history.h @@ -11,11 +11,6 @@ #ifndef _EH_H #define _EH_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "mem-types.h" #include "circ-buff.h" diff --git a/libglusterfs/src/event-poll.c b/libglusterfs/src/event-poll.c index 0daceb0d5a..b32d38f6aa 100644 --- a/libglusterfs/src/event-poll.c +++ b/libglusterfs/src/event-poll.c @@ -21,11 +21,6 @@ #include "mem-pool.h" #include "common-utils.h" -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - struct event_slot_poll { diff --git a/libglusterfs/src/event.c b/libglusterfs/src/event.c index 35564e46ea..ab93f6c1f1 100644 --- a/libglusterfs/src/event.c +++ b/libglusterfs/src/event.c @@ -21,11 +21,6 @@ #include "mem-pool.h" #include "common-utils.h" -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - struct event_pool * diff --git a/libglusterfs/src/event.h b/libglusterfs/src/event.h index eac57bc01a..b01ef24bb8 100644 --- a/libglusterfs/src/event.h +++ b/libglusterfs/src/event.h @@ -11,11 +11,6 @@ #ifndef _EVENT_H_ #define _EVENT_H_ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <pthread.h> struct event_pool; diff --git a/libglusterfs/src/fd.c b/libglusterfs/src/fd.c index 613f9017b0..1a191f340e 100644 --- a/libglusterfs/src/fd.c +++ b/libglusterfs/src/fd.c @@ -15,11 +15,6 @@ #include "statedump.h" -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - static int gf_fd_fdtable_expand (fdtable_t *fdtable, uint32_t nr); diff --git a/libglusterfs/src/fd.h b/libglusterfs/src/fd.h index c1b9157d88..5a98ec38ca 100644 --- a/libglusterfs/src/fd.h +++ b/libglusterfs/src/fd.h @@ -11,11 +11,6 @@ #ifndef _FD_H #define _FD_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "list.h" #include <sys/types.h> #include <unistd.h> diff --git a/libglusterfs/src/gf-dirent.c b/libglusterfs/src/gf-dirent.c index 99c0eb6441..c602d08b27 100644 --- a/libglusterfs/src/gf-dirent.c +++ b/libglusterfs/src/gf-dirent.c @@ -9,11 +9,6 @@ */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <stdio.h> #include <string.h> diff --git a/libglusterfs/src/gf-dirent.h b/libglusterfs/src/gf-dirent.h index faeaf41194..098a66ace1 100644 --- a/libglusterfs/src/gf-dirent.h +++ b/libglusterfs/src/gf-dirent.h @@ -12,11 +12,6 @@ #ifndef _GF_DIRENT_H #define _GF_DIRENT_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "iatt.h" #include "inode.h" diff --git a/libglusterfs/src/gfdb/gfdb_data_store.h b/libglusterfs/src/gfdb/gfdb_data_store.h index 977794df5c..57f3de18f1 100644 --- a/libglusterfs/src/gfdb/gfdb_data_store.h +++ b/libglusterfs/src/gfdb/gfdb_data_store.h @@ -11,11 +11,6 @@ #define __GFDB_DATA_STORE_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "glusterfs.h" #include "xlator.h" #include "logging.h" diff --git a/libglusterfs/src/gfdb/gfdb_data_store_types.h b/libglusterfs/src/gfdb/gfdb_data_store_types.h index 72a1c89a74..5f6650dd91 100644 --- a/libglusterfs/src/gfdb/gfdb_data_store_types.h +++ b/libglusterfs/src/gfdb/gfdb_data_store_types.h @@ -11,11 +11,6 @@ #define __GFDB_DATA_STORE_TYPE_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <time.h> #include <sys/time.h> #include <string.h> diff --git a/libglusterfs/src/gfdb/gfdb_sqlite3.h b/libglusterfs/src/gfdb/gfdb_sqlite3.h index 04bfde7fa3..5b6921eafe 100644 --- a/libglusterfs/src/gfdb/gfdb_sqlite3.h +++ b/libglusterfs/src/gfdb/gfdb_sqlite3.h @@ -11,11 +11,6 @@ #define __GFDB_SQLITE3_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - /*Sqlite3 header file*/ #include <sqlite3.h> diff --git a/libglusterfs/src/gfdb/gfdb_sqlite3_helper.h b/libglusterfs/src/gfdb/gfdb_sqlite3_helper.h index 8b62be1d4d..0d222305d0 100644 --- a/libglusterfs/src/gfdb/gfdb_sqlite3_helper.h +++ b/libglusterfs/src/gfdb/gfdb_sqlite3_helper.h @@ -11,11 +11,6 @@ #define __GFDB_SQLITE3_HELPER_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "gfdb_sqlite3.h" /****************************************************************************** diff --git a/libglusterfs/src/glfs-message-id.h b/libglusterfs/src/glfs-message-id.h index 0cd035f875..f6ee181768 100644 --- a/libglusterfs/src/glfs-message-id.h +++ b/libglusterfs/src/glfs-message-id.h @@ -11,11 +11,6 @@ #ifndef _GLFS_MESSAGE_ID_H_ #define _GLFS_MESSAGE_ID_H_ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - /* Base of all message IDs, all message IDs would be * greater than this */ #define GLFS_MSGID_BASE 100000 diff --git a/libglusterfs/src/globals.c b/libglusterfs/src/globals.c index bd1165ec50..a875049dfe 100644 --- a/libglusterfs/src/globals.c +++ b/libglusterfs/src/globals.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif /* !_CONFIG_H */ - #include <pthread.h> #include "glusterfs.h" diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index 6f20185f80..10e22af004 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -11,11 +11,6 @@ #ifndef _GLUSTERFS_H #define _GLUSTERFS_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <stdio.h> #include <string.h> #include <stdlib.h> diff --git a/libglusterfs/src/graph-print.c b/libglusterfs/src/graph-print.c index d860d63b30..d352cc798b 100644 --- a/libglusterfs/src/graph-print.c +++ b/libglusterfs/src/graph-print.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <sys/uio.h> #include "common-utils.h" diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 709ec3b3ce..e3a864bf11 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "xlator.h" #include <dlfcn.h> #include <netdb.h> diff --git a/libglusterfs/src/hashfn.c b/libglusterfs/src/hashfn.c index f79165b221..62f7ab8780 100644 --- a/libglusterfs/src/hashfn.c +++ b/libglusterfs/src/hashfn.c @@ -11,11 +11,6 @@ #include <stdint.h> #include <stdlib.h> -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "hashfn.h" #define get16bits(d) (*((const uint16_t *) (d))) diff --git a/libglusterfs/src/hashfn.h b/libglusterfs/src/hashfn.h index 06ae37e796..fed464e11c 100644 --- a/libglusterfs/src/hashfn.h +++ b/libglusterfs/src/hashfn.h @@ -11,11 +11,6 @@ #ifndef __HASHFN_H__ #define __HASHFN_H__ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <sys/types.h> #include <stdint.h> diff --git a/libglusterfs/src/iatt.h b/libglusterfs/src/iatt.h index a404d9c8cd..e89f94662a 100644 --- a/libglusterfs/src/iatt.h +++ b/libglusterfs/src/iatt.h @@ -12,11 +12,6 @@ #ifndef _IATT_H #define _IATT_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <sys/types.h> #include <sys/stat.h> /* for iatt <--> stat conversions */ #include <unistd.h> diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c index c010db2a68..47096de541 100644 --- a/libglusterfs/src/inode.c +++ b/libglusterfs/src/inode.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "inode.h" #include "fd.h" #include "common-utils.h" diff --git a/libglusterfs/src/inode.h b/libglusterfs/src/inode.h index 5081559934..83646ebda5 100644 --- a/libglusterfs/src/inode.h +++ b/libglusterfs/src/inode.h @@ -11,11 +11,6 @@ #ifndef _INODE_H #define _INODE_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <stdint.h> #include <sys/types.h> diff --git a/libglusterfs/src/lkowner.h b/libglusterfs/src/lkowner.h index 969d13e504..78f54a628d 100644 --- a/libglusterfs/src/lkowner.h +++ b/libglusterfs/src/lkowner.h @@ -11,11 +11,6 @@ #ifndef _LK_OWNER_H #define _LK_OWNER_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #define GF_MAX_LOCK_OWNER_LEN 1024 /* 1kB as per NLM */ /* 16strings-16strings-... */ diff --git a/libglusterfs/src/locking.h b/libglusterfs/src/locking.h index 79c6992af0..a66cdc188d 100644 --- a/libglusterfs/src/locking.h +++ b/libglusterfs/src/locking.h @@ -11,11 +11,6 @@ #ifndef _LOCKING_H #define _LOCKING_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <pthread.h> #if HAVE_SPINLOCK diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c index e8fca2db91..90eebee2ab 100644 --- a/libglusterfs/src/logging.c +++ b/libglusterfs/src/logging.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <errno.h> #include <pthread.h> #include <stdio.h> diff --git a/libglusterfs/src/logging.h b/libglusterfs/src/logging.h index f19fe9e100..515b4372e8 100644 --- a/libglusterfs/src/logging.h +++ b/libglusterfs/src/logging.h @@ -11,11 +11,6 @@ #ifndef __LOGGING_H__ #define __LOGGING_H__ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <sys/time.h> #include <stdint.h> #include <stdio.h> diff --git a/libglusterfs/src/lvm-defaults.h b/libglusterfs/src/lvm-defaults.h index 4d3b010b20..32feebf3f6 100644 --- a/libglusterfs/src/lvm-defaults.h +++ b/libglusterfs/src/lvm-defaults.h @@ -11,11 +11,6 @@ #ifndef _LVM_DEFAULTS_H #define _LVM_DEFAULTS_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #define LVM_RESIZE "/sbin/lvresize" #define LVM_CREATE "/sbin/lvcreate" #define LVM_CONVERT "/sbin/lvconvert" diff --git a/libglusterfs/src/options.c b/libglusterfs/src/options.c index 75dce0ea3b..33d8187991 100644 --- a/libglusterfs/src/options.c +++ b/libglusterfs/src/options.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <fnmatch.h> #include "xlator.h" diff --git a/libglusterfs/src/options.h b/libglusterfs/src/options.h index 05a3d4332c..83b545850c 100644 --- a/libglusterfs/src/options.h +++ b/libglusterfs/src/options.h @@ -11,11 +11,6 @@ #ifndef _OPTIONS_H #define _OPTIONS_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <stdio.h> #include <stdint.h> #include <inttypes.h> diff --git a/libglusterfs/src/stack.h b/libglusterfs/src/stack.h index f2d2ef9503..e0cc45eeb6 100644 --- a/libglusterfs/src/stack.h +++ b/libglusterfs/src/stack.h @@ -16,11 +16,6 @@ #ifndef _STACK_H #define _STACK_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - struct _call_stack_t; typedef struct _call_stack_t call_stack_t; struct _call_frame_t; diff --git a/libglusterfs/src/store.c b/libglusterfs/src/store.c index 351741f429..42d2d75d8a 100644 --- a/libglusterfs/src/store.c +++ b/libglusterfs/src/store.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <inttypes.h> #include <libgen.h> diff --git a/libglusterfs/src/store.h b/libglusterfs/src/store.h index 6b7c98a354..4a726c6f00 100644 --- a/libglusterfs/src/store.h +++ b/libglusterfs/src/store.h @@ -10,11 +10,6 @@ #ifndef _GLUSTERD_STORE_H_ #define _GLUSTERD_STORE_H_ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "compat.h" #include "glusterfs.h" diff --git a/libglusterfs/src/strfd.c b/libglusterfs/src/strfd.c index 3eda05c2db..002d48629b 100644 --- a/libglusterfs/src/strfd.c +++ b/libglusterfs/src/strfd.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <stdarg.h> #include "mem-types.h" diff --git a/libglusterfs/src/syncop-utils.c b/libglusterfs/src/syncop-utils.c index 349fa92d64..81393136ab 100644 --- a/libglusterfs/src/syncop-utils.c +++ b/libglusterfs/src/syncop-utils.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "syncop.h" #include "common-utils.h" diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c index 81eae5a910..a4e39702b7 100644 --- a/libglusterfs/src/syncop.c +++ b/libglusterfs/src/syncop.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "syncop.h" int diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h index f41706a9d3..7779fada10 100644 --- a/libglusterfs/src/syncop.h +++ b/libglusterfs/src/syncop.h @@ -11,11 +11,6 @@ #ifndef _SYNCOP_H #define _SYNCOP_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "xlator.h" #include <sys/time.h> #include <pthread.h> diff --git a/libglusterfs/src/syscall.c b/libglusterfs/src/syscall.c index 0828b8a64f..dc257f6cfc 100644 --- a/libglusterfs/src/syscall.c +++ b/libglusterfs/src/syscall.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "compat.h" #include "syscall.h" diff --git a/libglusterfs/src/template-component-messages.h b/libglusterfs/src/template-component-messages.h index c1ea38cf77..7a6d0d14e1 100644 --- a/libglusterfs/src/template-component-messages.h +++ b/libglusterfs/src/template-component-messages.h @@ -11,11 +11,6 @@ #ifndef _component_MESSAGES_H_ #define _component_MESSAGES_H_ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "glfs-message-id.h" /* NOTE: Rules for message additions diff --git a/libglusterfs/src/timer.c b/libglusterfs/src/timer.c index 0d845cdeb3..1aa2079f09 100644 --- a/libglusterfs/src/timer.c +++ b/libglusterfs/src/timer.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "timer.h" #include "logging.h" #include "common-utils.h" diff --git a/libglusterfs/src/timer.h b/libglusterfs/src/timer.h index e64b350ec5..220a280c70 100644 --- a/libglusterfs/src/timer.h +++ b/libglusterfs/src/timer.h @@ -11,11 +11,6 @@ #ifndef _TIMER_H #define _TIMER_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "glusterfs.h" #include "xlator.h" #include <sys/time.h> diff --git a/libglusterfs/src/trie.h b/libglusterfs/src/trie.h index 0356e66210..f7a4deee02 100644 --- a/libglusterfs/src/trie.h +++ b/libglusterfs/src/trie.h @@ -11,11 +11,6 @@ #ifndef _TRIE_H_ #define _TRIE_H_ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - struct trienode; typedef struct trienode trienode_t; diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index 628f349995..117454092c 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -8,11 +8,6 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include "xlator.h" #include <dlfcn.h> #include <netdb.h> diff --git a/libglusterfs/src/xlator.h b/libglusterfs/src/xlator.h index ca30f99650..d7dbfb413b 100644 --- a/libglusterfs/src/xlator.h +++ b/libglusterfs/src/xlator.h @@ -11,11 +11,6 @@ #ifndef _XLATOR_H #define _XLATOR_H -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - #include <stdio.h> #include <stdint.h> #include <inttypes.h> |
