projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae16ad5
)
treewide: remove unused includes
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:56:32 +0000
(13:56 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 13:28:58 +0000
(15:28 +0200)
21 files changed:
src/collectd-tg.c
patch
|
blob
|
history
src/daemon/collectd.c
patch
|
blob
|
history
src/daemon/common.c
patch
|
blob
|
history
src/daemon/meta_data.c
patch
|
blob
|
history
src/daemon/utils_avltree.c
patch
|
blob
|
history
src/daemon/utils_cache.c
patch
|
blob
|
history
src/daemon/utils_cache.h
patch
|
blob
|
history
src/daemon/utils_heap.c
patch
|
blob
|
history
src/grpc.cc
patch
|
blob
|
history
src/libcollectdclient/network_buffer.c
patch
|
blob
|
history
src/match_empty_counter.c
patch
|
blob
|
history
src/match_hashed.c
patch
|
blob
|
history
src/match_timediff.c
patch
|
blob
|
history
src/network.c
patch
|
blob
|
history
src/statsd.c
patch
|
blob
|
history
src/utils_fbhash.c
patch
|
blob
|
history
src/utils_parse_option.c
patch
|
blob
|
history
src/write_graphite.c
patch
|
blob
|
history
src/write_http.c
patch
|
blob
|
history
src/write_riemann_threshold.c
patch
|
blob
|
history
src/zone.c
patch
|
blob
|
history
diff --git
a/src/collectd-tg.c
b/src/collectd-tg.c
index
23257fd
..
eaa99f6
100644
(file)
--- a/
src/collectd-tg.c
+++ b/
src/collectd-tg.c
@@
-46,7
+46,6
@@
#include "libcollectdclient/collectd/client.h"
#include "libcollectdclient/collectd/network.h"
#include "libcollectdclient/collectd/client.h"
#include "libcollectdclient/collectd/network.h"
-#include "libcollectdclient/collectd/network_buffer.h"
#define DEF_NUM_HOSTS 1000
#define DEF_NUM_PLUGINS 20
#define DEF_NUM_HOSTS 1000
#define DEF_NUM_PLUGINS 20
diff --git
a/src/daemon/collectd.c
b/src/daemon/collectd.c
index
ce4922d
..
2fce643
100644
(file)
--- a/
src/daemon/collectd.c
+++ b/
src/daemon/collectd.c
@@
-35,8
+35,6
@@
#include <sys/un.h>
#include <netdb.h>
#include <sys/un.h>
#include <netdb.h>
-#include <pthread.h>
-
#if HAVE_LOCALE_H
# include <locale.h>
#endif
#if HAVE_LOCALE_H
# include <locale.h>
#endif
diff --git
a/src/daemon/common.c
b/src/daemon/common.c
index
4c271d3
..
f9b1433
100644
(file)
--- a/
src/daemon/common.c
+++ b/
src/daemon/common.c
@@
-36,8
+36,6
@@
#include "plugin.h"
#include "utils_cache.h"
#include "plugin.h"
#include "utils_cache.h"
-#include <pthread.h>
-
#ifdef HAVE_MATH_H
# include <math.h>
#endif
#ifdef HAVE_MATH_H
# include <math.h>
#endif
diff --git
a/src/daemon/meta_data.c
b/src/daemon/meta_data.c
index
b3f892a
..
0cf8fda
100644
(file)
--- a/
src/daemon/meta_data.c
+++ b/
src/daemon/meta_data.c
@@
-28,8
+28,6
@@
#include "plugin.h"
#include "meta_data.h"
#include "plugin.h"
#include "meta_data.h"
-#include <pthread.h>
-
/*
* Data types
*/
/*
* Data types
*/
diff --git
a/src/daemon/utils_avltree.c
b/src/daemon/utils_avltree.c
index
1680c41
..
e1c41ec
100644
(file)
--- a/
src/daemon/utils_avltree.c
+++ b/
src/daemon/utils_avltree.c
@@
-24,11
+24,7
@@
* Florian octo Forster <octo at collectd.org>
**/
* Florian octo Forster <octo at collectd.org>
**/
-#include "config.h"
-
#include <stdlib.h>
#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
#include <assert.h>
#include "utils_avltree.h"
#include <assert.h>
#include "utils_avltree.h"
diff --git
a/src/daemon/utils_cache.c
b/src/daemon/utils_cache.c
index
bf8c901
..
fa592f0
100644
(file)
--- a/
src/daemon/utils_cache.c
+++ b/
src/daemon/utils_cache.c
@@
-34,7
+34,6
@@
#include "meta_data.h"
#include <assert.h>
#include "meta_data.h"
#include <assert.h>
-#include <pthread.h>
typedef struct cache_entry_s
{
typedef struct cache_entry_s
{
diff --git
a/src/daemon/utils_cache.h
b/src/daemon/utils_cache.h
index
6c6a883
..
93c2519
100644
(file)
--- a/
src/daemon/utils_cache.h
+++ b/
src/daemon/utils_cache.h
@@
-1,5
+1,5
@@
/**
/**
- * collectd -
src/
utils_cache.h
+ * collectd - utils_cache.h
* Copyright (C) 2007 Florian octo Forster
* Copyright (C) 2016 Sebastian tokkee Harl
*
* Copyright (C) 2007 Florian octo Forster
* Copyright (C) 2016 Sebastian tokkee Harl
*
diff --git
a/src/daemon/utils_heap.c
b/src/daemon/utils_heap.c
index
19b1d5b
..
8637581
100644
(file)
--- a/
src/daemon/utils_heap.c
+++ b/
src/daemon/utils_heap.c
@@
-25,7
+25,6
@@
**/
#include <stdlib.h>
**/
#include <stdlib.h>
-#include <string.h>
#include <errno.h>
#include <assert.h>
#include <pthread.h>
#include <errno.h>
#include <assert.h>
#include <pthread.h>
diff --git
a/src/grpc.cc
b/src/grpc.cc
index
7517bb7
..
a1dac35
100644
(file)
--- a/
src/grpc.cc
+++ b/
src/grpc.cc
@@
-36,7
+36,6
@@
extern "C" {
#include <fnmatch.h>
#include <stdbool.h>
extern "C" {
#include <fnmatch.h>
#include <stdbool.h>
-#include <pthread.h>
#include "collectd.h"
#include "common.h"
#include "collectd.h"
#include "common.h"
diff --git
a/src/libcollectdclient/network_buffer.c
b/src/libcollectdclient/network_buffer.c
index
130da23
..
2b97d18
100644
(file)
--- a/
src/libcollectdclient/network_buffer.c
+++ b/
src/libcollectdclient/network_buffer.c
@@
-36,7
+36,6
@@
#include <pthread.h>
#if HAVE_LIBGCRYPT
#include <pthread.h>
#if HAVE_LIBGCRYPT
-# include <pthread.h>
# if defined __APPLE__
/* default xcode compiler throws warnings even when deprecated functionality
* is not used. -Werror breaks the build because of erroneous warnings.
# if defined __APPLE__
/* default xcode compiler throws warnings even when deprecated functionality
* is not used. -Werror breaks the build because of erroneous warnings.
diff --git
a/src/match_empty_counter.c
b/src/match_empty_counter.c
index
8f99a6d
..
eba6a58
100644
(file)
--- a/
src/match_empty_counter.c
+++ b/
src/match_empty_counter.c
@@
-26,7
+26,6
@@
#include "collectd.h"
#include "common.h"
#include "collectd.h"
#include "common.h"
-#include "utils_cache.h"
#include "filter_chain.h"
/*
#include "filter_chain.h"
/*
diff --git
a/src/match_hashed.c
b/src/match_hashed.c
index
4178d75
..
79f79fa
100644
(file)
--- a/
src/match_hashed.c
+++ b/
src/match_hashed.c
@@
-26,7
+26,6
@@
#include "collectd.h"
#include "common.h"
#include "collectd.h"
#include "common.h"
-#include "utils_cache.h"
#include "filter_chain.h"
/*
#include "filter_chain.h"
/*
diff --git
a/src/match_timediff.c
b/src/match_timediff.c
index
77c8f51
..
750817b
100644
(file)
--- a/
src/match_timediff.c
+++ b/
src/match_timediff.c
@@
-26,7
+26,6
@@
#include "collectd.h"
#include "common.h"
#include "collectd.h"
#include "common.h"
-#include "utils_cache.h"
#include "filter_chain.h"
#define SATISFY_ALL 0
#include "filter_chain.h"
#define SATISFY_ALL 0
diff --git
a/src/network.c
b/src/network.c
index
d3c6044
..
646f5b8
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-30,7
+30,6
@@
#include "common.h"
#include "configfile.h"
#include "utils_fbhash.h"
#include "common.h"
#include "configfile.h"
#include "utils_fbhash.h"
-#include "utils_avltree.h"
#include "utils_cache.h"
#include "utils_complain.h"
#include "utils_cache.h"
#include "utils_complain.h"
diff --git
a/src/statsd.c
b/src/statsd.c
index
1819b3e
..
57cdbc5
100644
(file)
--- a/
src/statsd.c
+++ b/
src/statsd.c
@@
-29,7
+29,6
@@
#include "common.h"
#include "configfile.h"
#include "utils_avltree.h"
#include "common.h"
#include "configfile.h"
#include "utils_avltree.h"
-#include "utils_complain.h"
#include "utils_latency.h"
#include <sys/types.h>
#include "utils_latency.h"
#include <sys/types.h>
diff --git
a/src/utils_fbhash.c
b/src/utils_fbhash.c
index
f27c082
..
41f640a
100644
(file)
--- a/
src/utils_fbhash.c
+++ b/
src/utils_fbhash.c
@@
-27,8
+27,6
@@
#include "collectd.h"
#include "plugin.h"
#include "collectd.h"
#include "plugin.h"
-#include <pthread.h>
-
#include "utils_fbhash.h"
#include "utils_avltree.h"
#include "utils_fbhash.h"
#include "utils_avltree.h"
diff --git
a/src/utils_parse_option.c
b/src/utils_parse_option.c
index
69da040
..
f3ec71a
100644
(file)
--- a/
src/utils_parse_option.c
+++ b/
src/utils_parse_option.c
@@
-25,8
+25,6
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
-#include "common.h"
-#include "plugin.h"
#include "utils_parse_option.h"
int parse_string (char **ret_buffer, char **ret_string)
#include "utils_parse_option.h"
int parse_string (char **ret_buffer, char **ret_string)
diff --git
a/src/write_graphite.c
b/src/write_graphite.c
index
0f9a8be
..
64794be
100644
(file)
--- a/
src/write_graphite.c
+++ b/
src/write_graphite.c
@@
-47,7
+47,6
@@
#include "plugin.h"
#include "configfile.h"
#include "plugin.h"
#include "configfile.h"
-#include "utils_cache.h"
#include "utils_complain.h"
#include "utils_format_graphite.h"
#include "utils_complain.h"
#include "utils_format_graphite.h"
diff --git
a/src/write_http.c
b/src/write_http.c
index
779c94f
..
aea7935
100644
(file)
--- a/
src/write_http.c
+++ b/
src/write_http.c
@@
-26,7
+26,6
@@
#include "collectd.h"
#include "plugin.h"
#include "common.h"
#include "collectd.h"
#include "plugin.h"
#include "common.h"
-#include "utils_cache.h"
#include "utils_format_json.h"
#include <curl/curl.h>
#include "utils_format_json.h"
#include <curl/curl.h>
diff --git
a/src/write_riemann_threshold.c
b/src/write_riemann_threshold.c
index
a09ae5f
..
a4249ec
100644
(file)
--- a/
src/write_riemann_threshold.c
+++ b/
src/write_riemann_threshold.c
@@
-33,10
+33,6
@@
#include "utils_threshold.h"
#include "write_riemann_threshold.h"
#include "utils_threshold.h"
#include "write_riemann_threshold.h"
-#include <assert.h>
-#include <ltdl.h>
-#include <pthread.h>
-
/*
* Threshold management
* ====================
/*
* Threshold management
* ====================
diff --git
a/src/zone.c
b/src/zone.c
index
ba07c9e
..
40c4d2e
100644
(file)
--- a/
src/zone.c
+++ b/
src/zone.c
@@
-34,8
+34,6
@@
#include "common.h"
#include "plugin.h"
#include "common.h"
#include "plugin.h"
-#include <sys/types.h>
-#include <sys/vm_usage.h>
#include <procfs.h>
#include <zone.h>
#include <procfs.h>
#include <zone.h>