summaryrefslogtreecommitdiffstats
path: root/streaming
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2021-05-24 17:44:50 +0300
committerGitHub <noreply@github.com>2021-05-24 17:44:50 +0300
commitb8cd2bdc50fd8d10eb38c173b97b5918012271e7 (patch)
tree90f955325e16371e9dbab011e64b5ef8293179b8 /streaming
parent277e4f10bc47bfc5f48a6f62adea5c3fac45208e (diff)
Remove unecessary relative paths when including headers. (#11124)
Currently, we add the repository's top-level dir in the compiler's header search path. This means that code in every top-level directory within the repo can include headers sibling top-level directories. This patch makes header inclusion consistent when it comes to files that are included from sibling top-level directories within the repo.
Diffstat (limited to 'streaming')
-rw-r--r--streaming/receiver.c2
-rw-r--r--streaming/rrdpush.c2
-rw-r--r--streaming/rrdpush.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/streaming/receiver.c b/streaming/receiver.c
index 11191f3c78..e1639e3799 100644
--- a/streaming/receiver.c
+++ b/streaming/receiver.c
@@ -49,7 +49,7 @@ static void rrdpush_receiver_thread_cleanup(void *ptr) {
}
}
-#include "../collectors/plugins.d/pluginsd_parser.h"
+#include "collectors/plugins.d/pluginsd_parser.h"
PARSER_RC streaming_timestamp(char **words, void *user, PLUGINSD_ACTION *plugins_action)
{
diff --git a/streaming/rrdpush.c b/streaming/rrdpush.c
index f54fc609ee..27fcddbb09 100644
--- a/streaming/rrdpush.c
+++ b/streaming/rrdpush.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#include "rrdpush.h"
-#include "../parser/parser.h"
+#include "parser/parser.h"
/*
* rrdpush
diff --git a/streaming/rrdpush.h b/streaming/rrdpush.h
index 225d0c2992..959c3cc60e 100644
--- a/streaming/rrdpush.h
+++ b/streaming/rrdpush.h
@@ -3,8 +3,8 @@
#ifndef NETDATA_RRDPUSH_H
#define NETDATA_RRDPUSH_H 1
-#include "../database/rrd.h"
-#include "../libnetdata/libnetdata.h"
+#include "database/rrd.h"
+#include "libnetdata/libnetdata.h"
#include "web/server/web_client.h"
#include "daemon/common.h"