render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
Blob Blame History Raw
From 2056fea539669061bec0d707511ff0f1391953b0 Mon Sep 17 00:00:00 2001
Message-Id: <2056fea539669061bec0d707511ff0f1391953b0@dist-git>
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
Date: Fri, 13 Mar 2020 13:08:05 +0100
Subject: [PATCH] virbuftest: declare testBufAddStrData earlier
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Move the declaration to the beginning of the file for reuse.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
(cherry picked from commit ebd44715f19a81f16b2e263b262c0099fe94a0b6)

Prerequisite for: https://bugzilla.redhat.com/show_bug.cgi?id=1808499

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Message-Id: <5bd2b1b3dfb32ca39c8e1d10810385d483d0643a.1584101247.git.mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
---
 tests/virbuftest.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/virbuftest.c b/tests/virbuftest.c
index bb7fa9e2e9..bb606c1c28 100644
--- a/tests/virbuftest.c
+++ b/tests/virbuftest.c
@@ -9,6 +9,11 @@
 
 #define VIR_FROM_THIS VIR_FROM_NONE
 
+struct testBufAddStrData {
+    const char *data;
+    const char *expect;
+};
+
 static int testBufAutoIndent(const void *data G_GNUC_UNUSED)
 {
     virBuffer bufinit = VIR_BUFFER_INITIALIZER;
@@ -235,11 +240,6 @@ static int testBufAddBuffer(const void *data G_GNUC_UNUSED)
     return ret;
 }
 
-struct testBufAddStrData {
-    const char *data;
-    const char *expect;
-};
-
 static int
 testBufAddStr(const void *opaque)
 {
-- 
2.25.1