commit
453c376198
|
@ -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 @@
|
||||||
#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)
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue