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