!193 告警修复

Merge pull request !193 from luyifan/master
This commit is contained in:
openharmony_ci 2024-08-26 11:28:32 +00:00 committed by Gitee
commit 7ae3014c51
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 3 deletions

View File

@ -15,11 +15,12 @@
#ifndef OWNERID_UTILS_H
#define OWNERID_UTILS_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
int ConvertIdType(int idType, const char *ownerId);
uint32_t ConvertIdType(int idType, const char *ownerId);
#ifdef __cplusplus
}

View File

@ -21,9 +21,9 @@
#include <unordered_set>
// the list will be removed before 930
const std::unordered_set<std::string> g_tempAllowList;
static const std::unordered_set<std::string> g_tempAllowList;
int ConvertIdType(int idType, const char *ownerId)
uint32_t ConvertIdType(int idType, const char *ownerId)
{
if (idType != PROCESS_OWNERID_APP || ownerId == nullptr) {
return idType;