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 /spawn | |
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 'spawn')
-rw-r--r-- | spawn/spawn.c | 2 | ||||
-rw-r--r-- | spawn/spawn.h | 2 | ||||
-rw-r--r-- | spawn/spawn_client.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/spawn/spawn.c b/spawn/spawn.c index e416a96b43..46853ecb91 100644 --- a/spawn/spawn.c +++ b/spawn/spawn.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later #include "spawn.h" -#include "../database/engine/rrdenginelib.h" +#include "database/engine/rrdenginelib.h" static uv_thread_t thread; int spawn_thread_error; diff --git a/spawn/spawn.h b/spawn/spawn.h index 6a44143389..a9f1a07441 100644 --- a/spawn/spawn.h +++ b/spawn/spawn.h @@ -3,7 +3,7 @@ #ifndef NETDATA_SPAWN_H #define NETDATA_SPAWN_H 1 -#include "../daemon/common.h" +#include "daemon/common.h" #define SPAWN_SERVER_COMMAND_LINE_ARGUMENT "--special-spawn-server" diff --git a/spawn/spawn_client.c b/spawn/spawn_client.c index 83dc3c80df..01509ae06d 100644 --- a/spawn/spawn_client.c +++ b/spawn/spawn_client.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later #include "spawn.h" -#include "../database/engine/rrdenginelib.h" +#include "database/engine/rrdenginelib.h" static uv_process_t process; static uv_pipe_t spawn_channel; |