|
|
fbe740 |
From 2056fea539669061bec0d707511ff0f1391953b0 Mon Sep 17 00:00:00 2001
|
|
|
fbe740 |
Message-Id: <2056fea539669061bec0d707511ff0f1391953b0@dist-git>
|
|
|
fbe740 |
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
|
|
|
fbe740 |
Date: Fri, 13 Mar 2020 13:08:05 +0100
|
|
|
fbe740 |
Subject: [PATCH] virbuftest: declare testBufAddStrData earlier
|
|
|
fbe740 |
MIME-Version: 1.0
|
|
|
fbe740 |
Content-Type: text/plain; charset=UTF-8
|
|
|
fbe740 |
Content-Transfer-Encoding: 8bit
|
|
|
fbe740 |
|
|
|
fbe740 |
Move the declaration to the beginning of the file for reuse.
|
|
|
fbe740 |
|
|
|
fbe740 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Erik Skultety <eskultet@redhat.com>
|
|
|
fbe740 |
(cherry picked from commit ebd44715f19a81f16b2e263b262c0099fe94a0b6)
|
|
|
fbe740 |
|
|
|
fbe740 |
Prerequisite for: https://bugzilla.redhat.com/show_bug.cgi?id=1808499
|
|
|
fbe740 |
|
|
|
fbe740 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
fbe740 |
Message-Id: <5bd2b1b3dfb32ca39c8e1d10810385d483d0643a.1584101247.git.mprivozn@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
fbe740 |
---
|
|
|
fbe740 |
tests/virbuftest.c | 10 +++++-----
|
|
|
fbe740 |
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
fbe740 |
|
|
|
fbe740 |
diff --git a/tests/virbuftest.c b/tests/virbuftest.c
|
|
|
fbe740 |
index bb7fa9e2e9..bb606c1c28 100644
|
|
|
fbe740 |
--- a/tests/virbuftest.c
|
|
|
fbe740 |
+++ b/tests/virbuftest.c
|
|
|
fbe740 |
@@ -9,6 +9,11 @@
|
|
|
fbe740 |
|
|
|
fbe740 |
#define VIR_FROM_THIS VIR_FROM_NONE
|
|
|
fbe740 |
|
|
|
fbe740 |
+struct testBufAddStrData {
|
|
|
fbe740 |
+ const char *data;
|
|
|
fbe740 |
+ const char *expect;
|
|
|
fbe740 |
+};
|
|
|
fbe740 |
+
|
|
|
fbe740 |
static int testBufAutoIndent(const void *data G_GNUC_UNUSED)
|
|
|
fbe740 |
{
|
|
|
fbe740 |
virBuffer bufinit = VIR_BUFFER_INITIALIZER;
|
|
|
fbe740 |
@@ -235,11 +240,6 @@ static int testBufAddBuffer(const void *data G_GNUC_UNUSED)
|
|
|
fbe740 |
return ret;
|
|
|
fbe740 |
}
|
|
|
fbe740 |
|
|
|
fbe740 |
-struct testBufAddStrData {
|
|
|
fbe740 |
- const char *data;
|
|
|
fbe740 |
- const char *expect;
|
|
|
fbe740 |
-};
|
|
|
fbe740 |
-
|
|
|
fbe740 |
static int
|
|
|
fbe740 |
testBufAddStr(const void *opaque)
|
|
|
fbe740 |
{
|
|
|
fbe740 |
--
|
|
|
fbe740 |
2.25.1
|
|
|
fbe740 |
|