From 32407ac72dad308aacef034873f08d67096396dd Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sun, 16 Oct 2016 17:18:30 +0300 Subject: [PATCH] fixes for enabling clion debugging --- CMakeLists.txt | 10 +++++++--- src/rrd2json.c | 2 +- src/web_client.c | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e973f6eb..9c4aa760 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,8 +20,12 @@ set(NETDATA_SOURCE_FILES src/daemon.h src/dictionary.c src/dictionary.h + src/eval.c + src/eval.h src/global_statistics.c src/global_statistics.h + src/health.c + src/health.h src/log.c src/log.h src/main.c @@ -53,9 +57,9 @@ set(NETDATA_SOURCE_FILES src/proc_net_rpc_nfsd.c src/proc_net_snmp6.c src/proc_net_snmp.c + src/proc_net_softnet_stat.c src/proc_net_stat_conntrack.c src/proc_net_stat_synproxy.c - src/proc_net_softnet_stat.c src/proc_self_mountinfo.c src/proc_self_mountinfo.h src/proc_softirqs.c @@ -70,8 +74,8 @@ set(NETDATA_SOURCE_FILES src/rrd.h src/storage_number.c src/storage_number.h - src/sys_kernel_mm_ksm.c src/sys_fs_cgroup.c + src/sys_kernel_mm_ksm.c src/unit_test.c src/unit_test.h src/url.c @@ -84,7 +88,7 @@ set(NETDATA_SOURCE_FILES src/web_client.h src/web_server.c src/web_server.h - config.h src/health.h src/health.c src/eval.h src/eval.c) +) set(APPS_PLUGIN_SOURCE_FILES src/appconfig.c diff --git a/src/rrd2json.c b/src/rrd2json.c index 474b5915..b2c1a055 100644 --- a/src/rrd2json.c +++ b/src/rrd2json.c @@ -1158,7 +1158,7 @@ inline static void rrdr_free(RRDR *r) freez(r); } -inline void rrdr_done(RRDR *r) +static inline void rrdr_done(RRDR *r) { r->rows = r->c + 1; r->c = 0; diff --git a/src/web_client.c b/src/web_client.c index 2485f205..c16acfa0 100644 --- a/src/web_client.c +++ b/src/web_client.c @@ -14,7 +14,7 @@ int web_enable_gzip = 1, web_gzip_level = 3, web_gzip_strategy = Z_DEFAULT_STRAT struct web_client *web_clients = NULL; unsigned long long web_clients_count = 0; -inline int web_client_crock_socket(struct web_client *w) { +static inline int web_client_crock_socket(struct web_client *w) { #ifdef TCP_CORK if(likely(!w->tcp_cork && w->ofd != -1)) { w->tcp_cork = 1; @@ -29,7 +29,7 @@ inline int web_client_crock_socket(struct web_client *w) { return 0; } -inline int web_client_uncrock_socket(struct web_client *w) { +static inline int web_client_uncrock_socket(struct web_client *w) { #ifdef TCP_CORK if(likely(w->tcp_cork && w->ofd != -1)) { w->tcp_cork = 0; -- 2.39.2