summaryrefslogtreecommitdiffstats
path: root/daemon
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 /daemon
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 'daemon')
-rw-r--r--daemon/analytics.h2
-rw-r--r--daemon/commands.c2
-rw-r--r--daemon/common.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/daemon/analytics.h b/daemon/analytics.h
index e888297df5..9eb47bd195 100644
--- a/daemon/analytics.h
+++ b/daemon/analytics.h
@@ -3,7 +3,7 @@
#ifndef NETDATA_ANALYTICS_H
#define NETDATA_ANALYTICS_H 1
-#include "../daemon/common.h"
+#include "daemon/common.h"
/* Max number of seconds before the first META analytics is sent */
#define ANALYTICS_INIT_SLEEP_SEC 120
diff --git a/daemon/commands.c b/daemon/commands.c
index eac392e33a..3662f4c679 100644
--- a/daemon/commands.c
+++ b/daemon/commands.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#include "common.h"
-#include "../database/engine/rrdenginelib.h"
+#include "database/engine/rrdenginelib.h"
static uv_thread_t thread;
static uv_loop_t* loop;
diff --git a/daemon/common.h b/daemon/common.h
index 4cb54010c0..df18f47660 100644
--- a/daemon/common.h
+++ b/daemon/common.h
@@ -3,7 +3,7 @@
#ifndef NETDATA_COMMON_H
#define NETDATA_COMMON_H 1
-#include "../libnetdata/libnetdata.h"
+#include "libnetdata/libnetdata.h"
// ----------------------------------------------------------------------------
// shortcuts for the default netdata configuration