qemu: different declarations for the same method

Recently, this warning is appearing while libvirt is being compiled:
Function 'qemuAssignDeviceDiskAlias' argument order different:
declaration 'vmdef, def' definition 'def, disk'

This commit change the default declaration for qemuAssignDeviceDiskAlias
specified at src/qemu/qemu_alias.c.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Julio Faracco 2018-03-09 00:24:15 -03:00 committed by Andrea Bolognani
parent bf1b24514b
commit dff3fab47f

View File

@ -38,8 +38,8 @@ int qemuAssignDeviceControllerAlias(virDomainDefPtr domainDef,
virQEMUCapsPtr qemuCaps, virQEMUCapsPtr qemuCaps,
virDomainControllerDefPtr controller); virDomainControllerDefPtr controller);
int qemuAssignDeviceDiskAlias(virDomainDefPtr vmdef, int qemuAssignDeviceDiskAlias(virDomainDefPtr def,
virDomainDiskDefPtr def); virDomainDiskDefPtr disk);
int qemuAssignDeviceHostdevAlias(virDomainDefPtr def, int qemuAssignDeviceHostdevAlias(virDomainDefPtr def,
char **alias, char **alias,