Browse Source

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.
vkalintiris 3 years ago
parent
commit
b8cd2bdc50
10 changed files with 11 additions and 11 deletions
  1. 1 1
      aclk/aclk.h
  2. 2 2
      aclk/aclk_otp.c
  3. 1 1
      aclk/aclk_otp.h
  4. 1 1
      aclk/aclk_query_queue.h
  5. 1 1
      aclk/aclk_rx_msgs.h
  6. 1 1
      aclk/aclk_stats.h
  7. 1 1
      aclk/aclk_tx_msgs.c
  8. 1 1
      aclk/aclk_tx_msgs.h
  9. 1 1
      aclk/aclk_util.c
  10. 1 1
      aclk/https_client.c

+ 1 - 1
aclk/aclk.h

@@ -6,7 +6,7 @@ typedef struct aclk_rrdhost_state {
     char *claimed_id; // Claimed ID if host has one otherwise NULL
 } aclk_rrdhost_state;
 
-#include "../daemon/common.h"
+#include "daemon/common.h"
 #include "aclk_util.h"
 
 // version for aclk legacy (old cloud arch)

+ 2 - 2
aclk/aclk_otp.c

@@ -3,9 +3,9 @@
 
 #include "aclk_otp.h"
 
-#include "../daemon/common.h"
+#include "daemon/common.h"
 
-#include "../mqtt_websockets/c-rbuf/include/ringbuffer.h"
+#include "mqtt_websockets/c-rbuf/include/ringbuffer.h"
 
 // CentOS 7 has older version that doesn't define this
 // same goes for MacOS

+ 1 - 1
aclk/aclk_otp.h

@@ -3,7 +3,7 @@
 #ifndef ACLK_OTP_H
 #define ACLK_OTP_H
 
-#include "../daemon/common.h"
+#include "daemon/common.h"
 
 #include "https_client.h"
 

+ 1 - 1
aclk/aclk_query_queue.h

@@ -4,7 +4,7 @@
 #define NETDATA_ACLK_QUERY_QUEUE_H
 
 #include "libnetdata/libnetdata.h"
-#include "../daemon/common.h"
+#include "daemon/common.h"
 
 typedef enum {
     UNKNOWN,

+ 1 - 1
aclk/aclk_rx_msgs.h

@@ -5,7 +5,7 @@
 #ifndef ACLK_RX_MSGS_H
 #define ACLK_RX_MSGS_H
 
-#include "../daemon/common.h"
+#include "daemon/common.h"
 #include "libnetdata/libnetdata.h"
 
 int aclk_handle_cloud_message(char *payload);

+ 1 - 1
aclk/aclk_stats.h

@@ -3,7 +3,7 @@
 #ifndef NETDATA_ACLK_STATS_H
 #define NETDATA_ACLK_STATS_H
 
-#include "../daemon/common.h"
+#include "daemon/common.h"
 #include "libnetdata/libnetdata.h"
 
 #define ACLK_STATS_THREAD_NAME "ACLK_Stats"

+ 1 - 1
aclk/aclk_tx_msgs.c

@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-3.0-or-later
 
 #include "aclk_tx_msgs.h"
-#include "../daemon/common.h"
+#include "daemon/common.h"
 #include "aclk_util.h"
 #include "aclk_stats.h"
 

+ 1 - 1
aclk/aclk_tx_msgs.h

@@ -4,7 +4,7 @@
 
 #include <json-c/json.h>
 #include "libnetdata/libnetdata.h"
-#include "../daemon/common.h"
+#include "daemon/common.h"
 #include "mqtt_wss_client.h"
 
 void aclk_send_info_metadata(mqtt_wss_client client, int metadata_submitted, RRDHOST *host);

+ 1 - 1
aclk/aclk_util.c

@@ -4,7 +4,7 @@
 
 #include <stdio.h>
 
-#include "../daemon/common.h"
+#include "daemon/common.h"
 
 // CentOS 7 has older version that doesn't define this
 // same goes for MacOS

+ 1 - 1
aclk/https_client.c

@@ -4,7 +4,7 @@
 
 #include "https_client.h"
 
-#include "../mqtt_websockets/c-rbuf/include/ringbuffer.h"
+#include "mqtt_websockets/c-rbuf/include/ringbuffer.h"
 
 enum http_parse_state {
     HTTP_PARSE_INITIAL = 0,

Some files were not shown because too many files changed in this diff