未验证 提交 5323c828 编写于 作者: O openharmony_ci 提交者: Gitee

!2921 修复aafwk_lite appexecfwk_lite security_lite 编译报错

Merge pull request !2921 from Laowang-BearPi/master
...@@ -105,7 +105,7 @@ static void OnAbilityConnectDone(ElementName *elementName, SvcIdentity *serviceS ...@@ -105,7 +105,7 @@ static void OnAbilityConnectDone(ElementName *elementName, SvcIdentity *serviceS
sem_post(&g_sem); sem_post(&g_sem);
} }
static void OnAbilityDisconnectDone(ElementName (void)*elementName, int resultCode, void *storeData) static void OnAbilityDisconnectDone(ElementName *elementName, int resultCode, void *storeData)
{ {
printf("OnAbilityDisconnectDone\n"); printf("OnAbilityDisconnectDone\n");
} }
......
...@@ -52,7 +52,8 @@ static void TestBundleStateCallback(const uint8_t resultCode, const void *result ...@@ -52,7 +52,8 @@ static void TestBundleStateCallback(const uint8_t resultCode, const void *result
static string GetCurDir() static string GetCurDir()
{ {
string filePath = ""; string filePath = "";
if (!(char *buffer = getcwd(NULL, 0))) { char *buffer;
if ((buffer = getcwd(NULL, 0)) == NULL) {
perror("get file path error"); perror("get file path error");
} else { } else {
printf("Current Dir: %s\r\n", buffer); printf("Current Dir: %s\r\n", buffer);
......
...@@ -453,7 +453,7 @@ static int CapgetWithVersion(pid_t pid, unsigned int version) ...@@ -453,7 +453,7 @@ static int CapgetWithVersion(pid_t pid, unsigned int version)
} }
#endif #endif
#if (defined(_BOARD_HI3516_) && defined(LITE_FS_VFAT)) || #if (defined(_BOARD_HI3516_) && defined(LITE_FS_VFAT)) || \
(!defined(_BOARD_HI3516_) && (defined(LITE_FS_JFFS2) || defined(LITE_FS_VFAT))) (!defined(_BOARD_HI3516_) && (defined(LITE_FS_JFFS2) || defined(LITE_FS_VFAT)))
static int CapgetWithCaps(pid_t pid, unsigned int caps) static int CapgetWithCaps(pid_t pid, unsigned int caps)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册