Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
929add05
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
接近 2 年 前同步成功
通知
3
Star
37
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Init Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
929add05
编写于
7月 05, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 05, 2022
浏览文件
操作
浏览文件
下载
差异文件
!908 FIX: 修改L2 CJson为动态库
Merge pull request !908 from Mupceet/0705
上级
7525b21e
40d59693
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
4 deletion
+4
-4
interfaces/innerkits/BUILD.gn
interfaces/innerkits/BUILD.gn
+1
-1
services/param/linux/param_request.c
services/param/linux/param_request.c
+2
-2
test/unittest/BUILD.gn
test/unittest/BUILD.gn
+1
-1
未找到文件。
interfaces/innerkits/BUILD.gn
浏览文件 @
929add05
...
...
@@ -183,7 +183,7 @@ if (defined(ohos_lite)) {
"//base/startup/init_lite/services/param/linux:param_client",
"//base/startup/init_lite/services/utils:libinit_utils",
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/cJSON:cjson
_static
",
"//third_party/cJSON:cjson",
"//third_party/mbedtls:mbedtls_shared",
]
external_deps = [
...
...
services/param/linux/param_request.c
浏览文件 @
929add05
...
...
@@ -163,7 +163,7 @@ int SystemSetParameter(const char *name, const char *value)
}
fd
=
g_clientFd
;
pthread_mutex_unlock
(
&
g_clientMutex
);
PARAM_CHECK
(
fd
>
0
,
return
-
1
,
"Failed to connect server for set %s"
,
name
);
PARAM_CHECK
(
fd
>
=
0
,
return
-
1
,
"Failed to connect server for set %s"
,
name
);
ret
=
StartRequest
(
fd
,
request
,
DEFAULT_PARAM_SET_TIMEOUT
);
free
(
request
);
PARAM_LOGI
(
"SystemSetParameter name %s %d"
,
name
,
ret
);
...
...
@@ -212,7 +212,7 @@ int SystemWaitParameter(const char *name, const char *value, int32_t timeout)
timeout
=
1
;
#endif
int
fd
=
GetClientSocket
(
timeout
);
PARAM_CHECK
(
fd
>
0
,
return
-
1
,
"Failed to connect server for wait %s"
,
name
);
PARAM_CHECK
(
fd
>
=
0
,
return
-
1
,
"Failed to connect server for wait %s"
,
name
);
ret
=
StartRequest
(
fd
,
request
,
timeout
);
close
(
fd
);
free
(
request
);
...
...
test/unittest/BUILD.gn
浏览文件 @
929add05
...
...
@@ -205,7 +205,7 @@ ohos_unittest("init_unittest") {
"//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken",
"//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc",
"//third_party/bounds_checking_function:libsec_static",
"//third_party/cJSON:cjson
_static
",
"//third_party/cJSON:cjson",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
"//third_party/mbedtls:mbedtls_shared",
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录