提交 9669a4c2 编写于 作者: C chengjinsong2

修改参数类型

Signed-off-by: Nchengjinsong2 <chengjinsong2@huawei.com>
上级 1a0b90b9
......@@ -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.
先完成此消息的编辑!
想要评论请 注册