virbuftest: declare testBufAddStrData earlier

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>
This commit is contained in:
Ján Tomko 2020-01-14 08:04:29 +01:00
parent 662876723c
commit ebd44715f1

View File

@ -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)
{