From b8cd2bdc50fd8d10eb38c173b97b5918012271e7 Mon Sep 17 00:00:00 2001 From: vkalintiris Date: Mon, 24 May 2021 17:44:50 +0300 Subject: 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. --- claim/claim.c | 6 +++--- claim/claim.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'claim') diff --git a/claim/claim.c b/claim/claim.c index ce3f0803de..04d8efbb45 100644 --- a/claim/claim.c +++ b/claim/claim.c @@ -1,11 +1,11 @@ // SPDX-License-Identifier: GPL-3.0-or-later #include "claim.h" -#include "../registry/registry_internals.h" +#include "registry/registry_internals.h" #ifndef ACLK_NG -#include "../aclk/legacy/aclk_common.h" +#include "aclk/legacy/aclk_common.h" #else -#include "../aclk/aclk.h" +#include "aclk/aclk.h" #endif char *claiming_pending_arguments = NULL; diff --git a/claim/claim.h b/claim/claim.h index 2fd8d3e9bf..171cc1fab1 100644 --- a/claim/claim.h +++ b/claim/claim.h @@ -3,7 +3,7 @@ #ifndef NETDATA_CLAIM_H #define NETDATA_CLAIM_H 1 -#include "../daemon/common.h" +#include "daemon/common.h" extern char *claiming_pending_arguments; extern struct config cloud_config; -- cgit v1.2.3