mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
662876723c
commit
ebd44715f1
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user