mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virPCIDeviceAddressAsString: 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
0ee13fcd97
commit
ac77ed27fe
@ -1744,7 +1744,7 @@ virPCIDeviceAddressEqual(const virPCIDeviceAddress *addr1,
|
||||
}
|
||||
|
||||
char *
|
||||
virPCIDeviceAddressAsString(virPCIDeviceAddressPtr addr)
|
||||
virPCIDeviceAddressAsString(const virPCIDeviceAddress *addr)
|
||||
{
|
||||
char *str;
|
||||
|
||||
|
@ -236,7 +236,7 @@ bool virPCIDeviceAddressIsEmpty(const virPCIDeviceAddress *addr);
|
||||
bool virPCIDeviceAddressEqual(const virPCIDeviceAddress *addr1,
|
||||
const virPCIDeviceAddress *addr2);
|
||||
|
||||
char *virPCIDeviceAddressAsString(virPCIDeviceAddressPtr addr)
|
||||
char *virPCIDeviceAddressAsString(const virPCIDeviceAddress *addr)
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
|
||||
int virPCIDeviceAddressParse(char *address, virPCIDeviceAddressPtr bdf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user