未验证 提交 1e259e92 编写于 作者: O openharmony_ci 提交者: Gitee

!1409 FIX: 修改变量类型

Merge pull request !1409 from cheng_jinsong/1020
......@@ -322,7 +322,7 @@ const char *GetBuildRootHash(void)
int32_t GetIntParameter(const char *key, int32_t def)
{
char value[MAX_INT_LEN] = {0};
size_t size = sizeof(value);
uint32_t size = sizeof(value);
int ret = SystemGetParameter(key, value, &size);
if (ret != 0) {
return def;
......@@ -341,7 +341,7 @@ int32_t GetIntParameter(const char *key, int32_t def)
uint32_t GetUintParameter(const char *key, uint32_t def)
{
char value[MAX_INT_LEN] = {0};
size_t size = sizeof(value);
uint32_t size = sizeof(value);
int ret = SystemGetParameter(key, value, &size);
if (ret != 0) {
return def;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册