mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
virPCIDeviceAddressEqual: Fix const correctness
This function does not change any of the passed addresses. It just reads them. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> ACKed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
94fe500162
commit
0ee13fcd97
@ -1731,8 +1731,8 @@ virPCIDeviceAddressIsEmpty(const virPCIDeviceAddress *addr)
|
||||
}
|
||||
|
||||
bool
|
||||
virPCIDeviceAddressEqual(virPCIDeviceAddress *addr1,
|
||||
virPCIDeviceAddress *addr2)
|
||||
virPCIDeviceAddressEqual(const virPCIDeviceAddress *addr1,
|
||||
const virPCIDeviceAddress *addr2)
|
||||
{
|
||||
if (addr1->domain == addr2->domain &&
|
||||
addr1->bus == addr2->bus &&
|
||||
|
@ -233,8 +233,8 @@ bool virPCIDeviceAddressIsValid(virPCIDeviceAddressPtr addr,
|
||||
bool report);
|
||||
bool virPCIDeviceAddressIsEmpty(const virPCIDeviceAddress *addr);
|
||||
|
||||
bool virPCIDeviceAddressEqual(virPCIDeviceAddress *addr1,
|
||||
virPCIDeviceAddress *addr2);
|
||||
bool virPCIDeviceAddressEqual(const virPCIDeviceAddress *addr1,
|
||||
const virPCIDeviceAddress *addr2);
|
||||
|
||||
char *virPCIDeviceAddressAsString(virPCIDeviceAddressPtr addr)
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
|
Loading…
Reference in New Issue
Block a user