[PATCH 4/7] virbuftest: declare testBufAddStrData earlier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 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.21.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux