[libvirt] [PATCH 4/7] virbuftest: declare testBufAddStrData earlier

Ján Tomko posted 7 patches 6 years ago
[libvirt] [PATCH 4/7] virbuftest: declare testBufAddStrData earlier
Posted by Ján Tomko 6 years ago
Move the declaration to the beginning of the file for reuse.

Signed-off-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.21.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 4/7] virbuftest: declare testBufAddStrData earlier
Posted by Erik Skultety 6 years ago
On Tue, Jan 14, 2020 at 08:35:38AM +0100, Ján Tomko wrote:
> 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>

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