diff --git a/src/util/virpci.c b/src/util/virpci.c index 3b5071824f..61a6b359e5 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -1744,7 +1744,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 4b00749151..5074851777 100644 --- a/src/util/virpci.h +++ b/src/util/virpci.h @@ -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);