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
|
bool
|
||||||
virPCIDeviceAddressEqual(virPCIDeviceAddress *addr1,
|
virPCIDeviceAddressEqual(const virPCIDeviceAddress *addr1,
|
||||||
virPCIDeviceAddress *addr2)
|
const virPCIDeviceAddress *addr2)
|
||||||
{
|
{
|
||||||
if (addr1->domain == addr2->domain &&
|
if (addr1->domain == addr2->domain &&
|
||||||
addr1->bus == addr2->bus &&
|
addr1->bus == addr2->bus &&
|
||||||
|
@ -233,8 +233,8 @@ bool virPCIDeviceAddressIsValid(virPCIDeviceAddressPtr addr,
|
|||||||
bool report);
|
bool report);
|
||||||
bool virPCIDeviceAddressIsEmpty(const virPCIDeviceAddress *addr);
|
bool virPCIDeviceAddressIsEmpty(const virPCIDeviceAddress *addr);
|
||||||
|
|
||||||
bool virPCIDeviceAddressEqual(virPCIDeviceAddress *addr1,
|
bool virPCIDeviceAddressEqual(const virPCIDeviceAddress *addr1,
|
||||||
virPCIDeviceAddress *addr2);
|
const virPCIDeviceAddress *addr2);
|
||||||
|
|
||||||
char *virPCIDeviceAddressAsString(virPCIDeviceAddressPtr addr)
|
char *virPCIDeviceAddressAsString(virPCIDeviceAddressPtr addr)
|
||||||
ATTRIBUTE_NONNULL(1);
|
ATTRIBUTE_NONNULL(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user