Blame 0004-tests-rename-testStripIPv6BracketsData-to-testStripD.patch
|
|
c5b0b3 |
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
|
|
|
c5b0b3 |
Date: Tue, 14 Apr 2015 12:06:44 +0200
|
|
|
c5b0b3 |
Subject: [PATCH] tests: rename testStripIPv6BracketsData to testStripData
|
|
|
c5b0b3 |
|
|
|
c5b0b3 |
For reuse with other Strip* functions.
|
|
|
c5b0b3 |
|
|
|
c5b0b3 |
(cherry picked from commit e892842dfd3c7bad8fbfbfcf0501d01804e9e7c3)
|
|
|
c5b0b3 |
---
|
|
|
c5b0b3 |
tests/virstringtest.c | 6 +++---
|
|
|
c5b0b3 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
c5b0b3 |
|
|
|
c5b0b3 |
diff --git a/tests/virstringtest.c b/tests/virstringtest.c
|
|
|
c5b0b3 |
index a0bfd61..9d0b438 100644
|
|
|
c5b0b3 |
--- a/tests/virstringtest.c
|
|
|
c5b0b3 |
+++ b/tests/virstringtest.c
|
|
|
c5b0b3 |
@@ -522,14 +522,14 @@ testVirStringFreeListCount(const void *opaque ATTRIBUTE_UNUSED)
|
|
|
c5b0b3 |
}
|
|
|
c5b0b3 |
|
|
|
c5b0b3 |
|
|
|
c5b0b3 |
-struct testStripIPv6BracketsData {
|
|
|
c5b0b3 |
+struct testStripData {
|
|
|
c5b0b3 |
const char *string;
|
|
|
c5b0b3 |
const char *result;
|
|
|
c5b0b3 |
};
|
|
|
c5b0b3 |
|
|
|
c5b0b3 |
static int testStripIPv6Brackets(const void *args)
|
|
|
c5b0b3 |
{
|
|
|
c5b0b3 |
- const struct testStripIPv6BracketsData *data = args;
|
|
|
c5b0b3 |
+ const struct testStripData *data = args;
|
|
|
c5b0b3 |
int ret = -1;
|
|
|
c5b0b3 |
char *res = NULL;
|
|
|
c5b0b3 |
|
|
|
c5b0b3 |
@@ -766,7 +766,7 @@ mymain(void)
|
|
|
c5b0b3 |
|
|
|
c5b0b3 |
#define TEST_STRIP_IPV6_BRACKETS(str, res) \
|
|
|
c5b0b3 |
do { \
|
|
|
c5b0b3 |
- struct testStripIPv6BracketsData stripData = { \
|
|
|
c5b0b3 |
+ struct testStripData stripData = { \
|
|
|
c5b0b3 |
.string = str, \
|
|
|
c5b0b3 |
.result = res, \
|
|
|
c5b0b3 |
}; \
|