提交 586d4795 编写于 作者: Y yinjiaming

fixed 204d7a4a from https://gitee.com/hgbveiu743/kernel_liteos_a/pulls/997

fix: 内核告警清理
【背景】
内核中经扫描有可以修改的告警之处

【修改方案】
优化了代码的格式

【影响】
对现有的产品编译不会有影响。

re #I5SHM2
Signed-off-by: Nyinjiaming <yinjiaming@huawei.com>
Change-Id: I89be86a8317637f9eb54257131712b5b79f1e454
上级 6ed09bf1
......@@ -43,7 +43,7 @@ static UINT32 TestCase(VOID)
ioctl(fd, TRACE_STOP, NULL);
buffer = (char *)malloc(size);
buffer = static_cast<char *>(malloc(size));
if (buffer == NULL) {
printf("Read buffer malloc failed!\n");
goto EXIT;
......
......@@ -38,7 +38,7 @@
#include "unistd.h"
#include "search.h"
#define MISC_OK 0
#define MISC_NOK -1
#define MISC_NOK (-1)
extern VOID ItTestMisc001(VOID);
extern VOID ItTestMisc002(VOID);
......
......@@ -47,7 +47,7 @@ static int DnCompTest(void)
unsigned char **lastdnptr = &dnptrs[6];
int offset, ret;
offset = strlen(reinterpret_cast<const char *>(dnptrs[0]))+1;
offset = strlen(reinterpret_cast<const char *>(dnptrs[0])) + 1;
ret = dn_comp("x.y.z.example.com", comp_dn + offset, sizeof(comp_dn) - offset, dnptrs, lastdnptr);
dump(comp_dn + offset, ret);
ICUNIT_ASSERT_EQUAL(ret, 19, ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册