mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-06 09:55:46 +00:00
virpcivpdtest: Declare variables at multiple lines
In testPCIVPDResourceCustomCompareIndex() there are two variables declared at one line. They are both g_autoptr() decorated which makes it worse, because coccinelle fails to parse that. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
This commit is contained in:
parent
ad8ba5b199
commit
4f607caba0
@ -178,7 +178,8 @@ testPCIVPDResourceBasic(const void *data G_GNUC_UNUSED)
|
|||||||
static int
|
static int
|
||||||
testPCIVPDResourceCustomCompareIndex(const void *data G_GNUC_UNUSED)
|
testPCIVPDResourceCustomCompareIndex(const void *data G_GNUC_UNUSED)
|
||||||
{
|
{
|
||||||
g_autoptr(virPCIVPDResourceCustom) a = NULL, b = NULL;
|
g_autoptr(virPCIVPDResourceCustom) a = NULL;
|
||||||
|
g_autoptr(virPCIVPDResourceCustom) b = NULL;
|
||||||
|
|
||||||
/* Both are NULL */
|
/* Both are NULL */
|
||||||
if (!virPCIVPDResourceCustomCompareIndex(a, b))
|
if (!virPCIVPDResourceCustomCompareIndex(a, b))
|
||||||
|
Loading…
Reference in New Issue
Block a user