From 00c6d7b41e46518e2780f600ddf40ead4b909a9c Mon Sep 17 00:00:00 2001 From: Li Cao Date: Thu, 3 Sep 2020 10:53:35 +0800 Subject: [PATCH] [style] fix include directives (#5485) This commit fixes some public include directives that uses #include "xxx.h". It should be #include for public headers. --- src/core/api/channel_manager_api.cpp | 2 +- src/core/api/channel_monitor_api.cpp | 2 +- src/core/api/child_supervision_api.cpp | 2 +- src/core/api/entropy_api.cpp | 2 +- src/core/api/network_time_api.cpp | 2 +- src/core/api/random_crypto_api.cpp | 2 +- src/core/api/random_noncrypto_api.cpp | 2 +- src/posix/console_cli.cpp | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/api/channel_manager_api.cpp b/src/core/api/channel_manager_api.cpp index 5bb90ff23..142af7cdc 100644 --- a/src/core/api/channel_manager_api.cpp +++ b/src/core/api/channel_manager_api.cpp @@ -32,7 +32,7 @@ */ #include "openthread-core-config.h" -#include "openthread/channel_manager.h" +#include #include "common/instance.hpp" #include "common/locator-getters.hpp" diff --git a/src/core/api/channel_monitor_api.cpp b/src/core/api/channel_monitor_api.cpp index bb1970edd..f1d6b98d5 100644 --- a/src/core/api/channel_monitor_api.cpp +++ b/src/core/api/channel_monitor_api.cpp @@ -32,7 +32,7 @@ */ #include "openthread-core-config.h" -#include "openthread/channel_monitor.h" +#include #include "common/instance.hpp" #include "common/locator-getters.hpp" diff --git a/src/core/api/child_supervision_api.cpp b/src/core/api/child_supervision_api.cpp index 77a1113f7..2799209e1 100644 --- a/src/core/api/child_supervision_api.cpp +++ b/src/core/api/child_supervision_api.cpp @@ -32,7 +32,7 @@ */ #include "openthread-core-config.h" -#include "openthread/child_supervision.h" +#include #include "common/instance.hpp" #include "common/locator-getters.hpp" diff --git a/src/core/api/entropy_api.cpp b/src/core/api/entropy_api.cpp index 3c22efb4d..469e55d31 100644 --- a/src/core/api/entropy_api.cpp +++ b/src/core/api/entropy_api.cpp @@ -31,7 +31,7 @@ * This file implements the OpenThread entropy source management API. */ -#include "openthread/entropy.h" +#include #include "common/random_manager.hpp" diff --git a/src/core/api/network_time_api.cpp b/src/core/api/network_time_api.cpp index 49893daf0..f555532cf 100644 --- a/src/core/api/network_time_api.cpp +++ b/src/core/api/network_time_api.cpp @@ -35,7 +35,7 @@ #if OPENTHREAD_CONFIG_TIME_SYNC_ENABLE -#include "openthread/network_time.h" +#include #include "common/instance.hpp" #include "common/locator-getters.hpp" diff --git a/src/core/api/random_crypto_api.cpp b/src/core/api/random_crypto_api.cpp index 9970a6112..08797e893 100644 --- a/src/core/api/random_crypto_api.cpp +++ b/src/core/api/random_crypto_api.cpp @@ -31,7 +31,7 @@ * This file implements the OpenThread cryptographic random number generator API. */ -#include "openthread/random_crypto.h" +#include #include diff --git a/src/core/api/random_noncrypto_api.cpp b/src/core/api/random_noncrypto_api.cpp index 16838c021..51fb14178 100644 --- a/src/core/api/random_noncrypto_api.cpp +++ b/src/core/api/random_noncrypto_api.cpp @@ -31,7 +31,7 @@ * This file implements the OpenThread software random number generator API. */ -#include "openthread/random_noncrypto.h" +#include #include "common/random.hpp" diff --git a/src/posix/console_cli.cpp b/src/posix/console_cli.cpp index 91a620fd8..ef3c6fa2a 100644 --- a/src/posix/console_cli.cpp +++ b/src/posix/console_cli.cpp @@ -28,7 +28,7 @@ #include "console_cli.h" -#include "openthread/config.h" +#include #include #include