This function does not change any of the passed addresses. It just reads them. Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> --- src/util/virpci.c | 2 +- src/util/virpci.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/virpci.c b/src/util/virpci.c index 5392d62406..59f478dd41 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -1731,7 +1731,7 @@ virPCIDeviceAddressEqual(const virPCIDeviceAddress *addr1, } char * -virPCIDeviceAddressAsString(virPCIDeviceAddressPtr addr) +virPCIDeviceAddressAsString(const virPCIDeviceAddress *addr) { char *str; diff --git a/src/util/virpci.h b/src/util/virpci.h index a940608701..1efd8b77ed 100644 --- a/src/util/virpci.h +++ b/src/util/virpci.h @@ -234,7 +234,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); -- 2.21.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list