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