From 0cc358a54830afd047fa1a2d4c4a511c2acd5ab1 Mon Sep 17 00:00:00 2001 From: cc_ggboy Date: Thu, 5 May 2022 14:41:10 +0800 Subject: [PATCH] cwm_0505 Signed-off-by: cc_ggboy --- interfaces/innerkits/nativetoken/src/nativetoken.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/innerkits/nativetoken/src/nativetoken.c b/interfaces/innerkits/nativetoken/src/nativetoken.c index cc8e9610d..eb540de06 100644 --- a/interfaces/innerkits/nativetoken/src/nativetoken.c +++ b/interfaces/innerkits/nativetoken/src/nativetoken.c @@ -554,12 +554,12 @@ static uint32_t CheckProcessInfo(NativeTokenInfoParams *tokenInfo, int32_t *aplR ACCESSTOKEN_LOG_ERROR("[ATLIB-%s]:processName is invalid.", __func__); return ATRET_FAILED; } - int retDcap = CheckStrArray(tokenInfo->dcaps, tokenInfo->dcapsNum, MAX_DCAPS_NUM, MAX_DCAP_LEN); + uint32_t retDcap = CheckStrArray(tokenInfo->dcaps, tokenInfo->dcapsNum, MAX_DCAPS_NUM, MAX_DCAP_LEN); if (retDcap != ATRET_SUCCESS) { ACCESSTOKEN_LOG_ERROR("[ATLIB-%s]:dcaps is invalid.", __func__); return ATRET_FAILED; } - int retPerm = CheckStrArray(tokenInfo->perms, tokenInfo->permsNum, MAX_PERM_NUM, MAX_PERM_LEN); + uint32_t retPerm = CheckStrArray(tokenInfo->perms, tokenInfo->permsNum, MAX_PERM_NUM, MAX_PERM_LEN); if (retPerm != ATRET_SUCCESS) { ACCESSTOKEN_LOG_ERROR("[ATLIB-%s]:perms is invalid.", __func__); return ATRET_FAILED; -- Gitee