summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae16ad5)
raw | patch | inline | side by side (parent: ae16ad5)
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:
diff --git a/src/collectd-tg.c b/src/collectd-tg.c
index 23257fde9b2eaefbc52a063ad6b1cfad39843dc9..eaa99f63c783cfea0834b77cb954b73779c701de 100644 (file)
--- a/src/collectd-tg.c
+++ b/src/collectd-tg.c
#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
diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c
index ce4922d602ec2d5aa4bbd4f81a3e9856b3e995a4..2fce643d8d83113b8090cb16aa024786f4a6829e 100644 (file)
--- a/src/daemon/collectd.c
+++ b/src/daemon/collectd.c
#include <sys/un.h>
#include <netdb.h>
-#include <pthread.h>
-
#if HAVE_LOCALE_H
# include <locale.h>
#endif
diff --git a/src/daemon/common.c b/src/daemon/common.c
index 4c271d347d90e9d3bc60a50b5b528939eea2b235..f9b1433b3a5d86f6004c015f79b8206cfc854403 100644 (file)
--- a/src/daemon/common.c
+++ b/src/daemon/common.c
#include "plugin.h"
#include "utils_cache.h"
-#include <pthread.h>
-
#ifdef HAVE_MATH_H
# include <math.h>
#endif
diff --git a/src/daemon/meta_data.c b/src/daemon/meta_data.c
index b3f892a22061804ef0cfa79de2323dca3b55c7b0..0cf8fdac198e1fcd907093a8e34b04959262fb54 100644 (file)
--- a/src/daemon/meta_data.c
+++ b/src/daemon/meta_data.c
#include "plugin.h"
#include "meta_data.h"
-#include <pthread.h>
-
/*
* Data types
*/
index 1680c41fe37fd8dd1fbc51312c47a9cff2aca4b7..e1c41ecf8fb95c122c9fb2a20c6746a5271e8e5d 100644 (file)
* Florian octo Forster <octo at collectd.org>
**/
-#include "config.h"
-
#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
#include <assert.h>
#include "utils_avltree.h"
index bf8c901bd6683396cd3333a0d0784b08685eea66..fa592f0901a6150449877b6597403e3ac39b0165 100644 (file)
--- a/src/daemon/utils_cache.c
+++ b/src/daemon/utils_cache.c
#include "meta_data.h"
#include <assert.h>
-#include <pthread.h>
typedef struct cache_entry_s
{
index 6c6a883cc903190077a6f937e167ab3552e728a6..93c2519469f6f9436468719db5da0a49fc0fbdf1 100644 (file)
--- a/src/daemon/utils_cache.h
+++ b/src/daemon/utils_cache.h
/**
- * collectd - src/utils_cache.h
+ * collectd - utils_cache.h
* Copyright (C) 2007 Florian octo Forster
* Copyright (C) 2016 Sebastian tokkee Harl
*
index 19b1d5b9db31c4b3e7ae10dbfc29daccac95cde8..8637581149c890f45577cabb1e902099f52fb82b 100644 (file)
--- a/src/daemon/utils_heap.c
+++ b/src/daemon/utils_heap.c
**/
#include <stdlib.h>
-#include <string.h>
#include <errno.h>
#include <assert.h>
#include <pthread.h>
diff --git a/src/grpc.cc b/src/grpc.cc
index 7517bb720bd72c553c0a250801a5599f49917ba7..a1dac35bb6db0b8bb49c6ad4d78c805051a8091d 100644 (file)
--- a/src/grpc.cc
+++ b/src/grpc.cc
extern "C" {
#include <fnmatch.h>
#include <stdbool.h>
-#include <pthread.h>
#include "collectd.h"
#include "common.h"
index 130da2355a6c0c23713380101edb1fd9d35fc3e4..2b97d189aa2c8b577e74106254c671827ac0f609 100644 (file)
#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.
index 8f99a6d163cc0c4547fa516d30816e8d50181bc7..eba6a58ea272445b98987dc3ca0c6d3cbc3beece 100644 (file)
#include "collectd.h"
#include "common.h"
-#include "utils_cache.h"
#include "filter_chain.h"
/*
diff --git a/src/match_hashed.c b/src/match_hashed.c
index 4178d75764e94d9dca4f2b81213dbe6c4b39d60b..79f79face14d6bc35bd856c51de8f41f92dd6ea6 100644 (file)
--- a/src/match_hashed.c
+++ b/src/match_hashed.c
#include "collectd.h"
#include "common.h"
-#include "utils_cache.h"
#include "filter_chain.h"
/*
diff --git a/src/match_timediff.c b/src/match_timediff.c
index 77c8f51966f3e19d7f93ee25efc5a21fe0d13afa..750817be129b1db04ef64c4dd8956822c0338985 100644 (file)
--- a/src/match_timediff.c
+++ b/src/match_timediff.c
#include "collectd.h"
#include "common.h"
-#include "utils_cache.h"
#include "filter_chain.h"
#define SATISFY_ALL 0
diff --git a/src/network.c b/src/network.c
index d3c6044231edf2df1bf16e9df8f1c7f05509323d..646f5b8f3140699dc4b6ce160cc7b6992c10e489 100644 (file)
--- a/src/network.c
+++ b/src/network.c
#include "common.h"
#include "configfile.h"
#include "utils_fbhash.h"
-#include "utils_avltree.h"
#include "utils_cache.h"
#include "utils_complain.h"
diff --git a/src/statsd.c b/src/statsd.c
index 1819b3ea21437e28ee0d505b941e84243ffbdd76..57cdbc557d1e9cb3d204286fbfb53431c2269061 100644 (file)
--- a/src/statsd.c
+++ b/src/statsd.c
#include "common.h"
#include "configfile.h"
#include "utils_avltree.h"
-#include "utils_complain.h"
#include "utils_latency.h"
#include <sys/types.h>
diff --git a/src/utils_fbhash.c b/src/utils_fbhash.c
index f27c08272cb5cde3734975236164943bcd2757bd..41f640af5a835652b73fb943523cb352dff726fd 100644 (file)
--- a/src/utils_fbhash.c
+++ b/src/utils_fbhash.c
#include "collectd.h"
#include "plugin.h"
-#include <pthread.h>
-
#include "utils_fbhash.h"
#include "utils_avltree.h"
index 69da0403eb5ff877bd3516d0059faaf662f70ef3..f3ec71ae1c28fd23d99badabb34ef070f0bb5843 100644 (file)
--- a/src/utils_parse_option.c
+++ b/src/utils_parse_option.c
**/
#include "collectd.h"
-#include "common.h"
-#include "plugin.h"
#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 0f9a8bea86edd4828b9a47f06ad1fc62f40bec09..64794bec964a7823bf5f9028516a1848573e846a 100644 (file)
--- a/src/write_graphite.c
+++ b/src/write_graphite.c
#include "plugin.h"
#include "configfile.h"
-#include "utils_cache.h"
#include "utils_complain.h"
#include "utils_format_graphite.h"
diff --git a/src/write_http.c b/src/write_http.c
index 779c94f659722811e240eccac0035e5c67e0ec51..aea7935200ce1b5af13e8243b3bb42749cf35129 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
#include "collectd.h"
#include "plugin.h"
#include "common.h"
-#include "utils_cache.h"
#include "utils_format_json.h"
#include <curl/curl.h>
index a09ae5fd2a3de04d37b85987584a864b4969a778..a4249ecf7468c451b8bcb0911b38b921c47180d4 100644 (file)
#include "utils_threshold.h"
#include "write_riemann_threshold.h"
-#include <assert.h>
-#include <ltdl.h>
-#include <pthread.h>
-
/*
* Threshold management
* ====================
diff --git a/src/zone.c b/src/zone.c
index ba07c9efcb84aab86dfd416ec66d8ba9249d8d02..40c4d2ee5a3dad252f5a40d59bd883f0a419f434 100644 (file)
--- a/src/zone.c
+++ b/src/zone.c
#include "common.h"
#include "plugin.h"
-#include <sys/types.h>
-#include <sys/vm_usage.h>
#include <procfs.h>
#include <zone.h>