render / rpms / libvirt

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