提交 1297f07d 编写于 作者: R r00559040

修改格式

Signed-off-by: Nr00559040 <ry.renyi@huawei.com>
上级 10e0f09f
...@@ -32,7 +32,7 @@ static sem_t g_sem; ...@@ -32,7 +32,7 @@ static sem_t g_sem;
static string g_testPath; static string g_testPath;
extern "C" { extern "C" {
void __attribute__((weak)) HOS_SystemInit(void){} void __attribute__((weak)) HOS_SystemInit(void){}
} }
/* callback */ /* callback */
...@@ -52,8 +52,7 @@ static void TestBundleStateCallback(const uint8_t resultCode, const void *result ...@@ -52,8 +52,7 @@ static void TestBundleStateCallback(const uint8_t resultCode, const void *result
static string GetCurDir() static string GetCurDir()
{ {
string filePath = ""; string filePath = "";
char *buffer; if (!(char *buffer = getcwd(NULL, 0))) {
if (!(buffer = getcwd(NULL, 0))) {
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册