8 Star 0 Fork 7

src-openEuler/distributed-beget

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0008-fix-missing-header-file-and-type-compatibility.patch 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
From 710f90bcdd69c9d31a39c13911981a190d17a624 Mon Sep 17 00:00:00 2001
From: peng-langyuan <peng_langyuan@hoperun.com>
Date: Mon, 17 Jun 2024 10:16:18 +0800
Subject: [PATCH]
fix missing header file and type compatibility warning-issues
---
interfaces/innerkits/syspara/param_comm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/interfaces/innerkits/syspara/param_comm.c b/interfaces/innerkits/syspara/param_comm.c
index c139f4b7..ea5704f4 100644
--- a/interfaces/innerkits/syspara/param_comm.c
+++ b/interfaces/innerkits/syspara/param_comm.c
@@ -15,6 +15,7 @@
#include "param_comm.h"
+#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/sha.h>
@@ -230,7 +231,7 @@ BEGET_LOCAL_API int GetDeviceName_(char *deviceName, int size)
BEGET_LOCAL_API int GetOsAccount_(int *id)
{
char account[10] = {0};
- int len = sizeof(account);
+ uint32_t len = sizeof(account);
int ret = SystemGetParameter("const.default.account", account, &len);
BEGET_CHECK(ret == 0, return ret);
--
2.43.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/distributed-beget.git
git@gitee.com:src-openeuler/distributed-beget.git
src-openeuler
distributed-beget
distributed-beget
master

搜索帮助