!997 Fix : 内核告警清理

Merge pull request !997 from yinjiaming/fix
This commit is contained in:
openharmony_ci 2022-09-22 11:33:00 +00:00 committed by Gitee
commit 453c376198
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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);