From 154adb4412bd43d905310e3eb9e9a50a8b27e65e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=81=A5?= Date: Thu, 19 Jun 2025 15:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=BC=96=E8=AF=91=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=20Signed-off-by:=20=E5=AD=99=E5=81=A5=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frameworks/config_policy/src/config_policy_utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frameworks/config_policy/src/config_policy_utils.c b/frameworks/config_policy/src/config_policy_utils.c index 9dcf4d7..d07bc7d 100644 --- a/frameworks/config_policy/src/config_policy_utils.c +++ b/frameworks/config_policy/src/config_policy_utils.c @@ -25,9 +25,8 @@ #include "init_param.h" #endif -static const size_t MIN_APPEND_LEN = 32; - #ifndef __LITEOS__ +static const size_t MIN_APPEND_LEN = 32; // set min opkey length static const unsigned int MIN_OPKEY_LEN = 3; // ':' split different x rules, example:":relPath,mode[,extra][:]" @@ -77,6 +76,8 @@ __WEAK void TrigSetMiniConfigPolicy() * @NOTICE caller should free the returned value */ typedef char *(*QueryFunc)(const char *key); + +#ifndef __LITEOS__ static char *ExpandStr(char *src, const char *def, QueryFunc queryFunc); static inline size_t Min(size_t a, size_t b) @@ -88,6 +89,7 @@ static inline size_t Max(size_t a, size_t b) { return a > b ? a : b; } +#endif // __LITEOS__ static void FreeIf(void *p) { -- Gitee