diff options
author | vkalintiris <vasilis@netdata.cloud> | 2021-05-24 17:44:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 17:44:50 +0300 |
commit | b8cd2bdc50fd8d10eb38c173b97b5918012271e7 (patch) | |
tree | 90f955325e16371e9dbab011e64b5ef8293179b8 /cli | |
parent | 277e4f10bc47bfc5f48a6f62adea5c3fac45208e (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.c | 4 | ||||
-rw-r--r-- | cli/cli.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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 +} @@ -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 |