提交 0a09130d 编写于 作者: J Ján Tomko 提交者: Cole Robinson

tests: rename testStripIPv6BracketsData to testStripData

For reuse with other Strip* functions.

(cherry picked from commit e892842d)
上级 417a3263
...@@ -522,14 +522,14 @@ testVirStringFreeListCount(const void *opaque ATTRIBUTE_UNUSED) ...@@ -522,14 +522,14 @@ testVirStringFreeListCount(const void *opaque ATTRIBUTE_UNUSED)
} }
struct testStripIPv6BracketsData { struct testStripData {
const char *string; const char *string;
const char *result; const char *result;
}; };
static int testStripIPv6Brackets(const void *args) static int testStripIPv6Brackets(const void *args)
{ {
const struct testStripIPv6BracketsData *data = args; const struct testStripData *data = args;
int ret = -1; int ret = -1;
char *res = NULL; char *res = NULL;
...@@ -766,7 +766,7 @@ mymain(void) ...@@ -766,7 +766,7 @@ mymain(void)
#define TEST_STRIP_IPV6_BRACKETS(str, res) \ #define TEST_STRIP_IPV6_BRACKETS(str, res) \
do { \ do { \
struct testStripIPv6BracketsData stripData = { \ struct testStripData stripData = { \
.string = str, \ .string = str, \
.result = res, \ .result = res, \
}; \ }; \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册