summaryrefslogtreecommitdiffstats
path: root/cli
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 /cli
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 'cli')
-rw-r--r--cli/cli.c4
-rw-r--r--cli/cli.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/cli/cli.c b/cli/cli.c
index 4df0201787..229ad2952d 100644
--- a/cli/cli.c
+++ b/cli/cli.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#include "cli.h"
-#include "../libnetdata/required_dummies.h"
+#include "libnetdata/required_dummies.h"
static uv_pipe_t client_pipe;
static uv_write_t write_req;
@@ -198,4 +198,4 @@ int main(int argc, char **argv)
uv_close((uv_handle_t *)&client_pipe, NULL);
return exit_status;
-} \ No newline at end of file
+}
diff --git a/cli/cli.h b/cli/cli.h
index 9e730a3019..056e998622 100644
--- a/cli/cli.h
+++ b/cli/cli.h
@@ -3,6 +3,6 @@
#ifndef NETDATA_CLI_H
#define NETDATA_CLI_H 1
-#include "../daemon/common.h"
+#include "daemon/common.h"
#endif //NETDATA_CLI_H