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

!999 Fix : 将内核告警清理挑单到3.2-Beta3

Merge pull request !999 from yinjiaming/cherry-pick-1663836937
...@@ -43,7 +43,7 @@ static UINT32 TestCase(VOID) ...@@ -43,7 +43,7 @@ static UINT32 TestCase(VOID)
ioctl(fd, TRACE_STOP, NULL); ioctl(fd, TRACE_STOP, NULL);
buffer = (char *)malloc(size); buffer = static_cast<char *>(malloc(size));
if (buffer == NULL) { if (buffer == NULL) {
printf("Read buffer malloc failed!\n"); printf("Read buffer malloc failed!\n");
goto EXIT; goto EXIT;
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#include "unistd.h" #include "unistd.h"
#include "search.h" #include "search.h"
#define MISC_OK 0 #define MISC_OK 0
#define MISC_NOK -1 #define MISC_NOK (-1)
extern VOID ItTestMisc001(VOID); extern VOID ItTestMisc001(VOID);
extern VOID ItTestMisc002(VOID); extern VOID ItTestMisc002(VOID);
......
...@@ -47,7 +47,7 @@ static int DnCompTest(void) ...@@ -47,7 +47,7 @@ static int DnCompTest(void)
unsigned char **lastdnptr = &dnptrs[6]; unsigned char **lastdnptr = &dnptrs[6];
int offset, ret; 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); ret = dn_comp("x.y.z.example.com", comp_dn + offset, sizeof(comp_dn) - offset, dnptrs, lastdnptr);
dump(comp_dn + offset, ret); dump(comp_dn + offset, ret);
ICUNIT_ASSERT_EQUAL(ret, 19, ret); ICUNIT_ASSERT_EQUAL(ret, 19, ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册