Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- src/util/virpci.c | 4 ++-- src/util/virpci.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/virpci.c b/src/util/virpci.c index 7059b29ec3..7dbca5f3ff 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -2461,7 +2461,7 @@ virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddress *addr, int virPCIGetNetName(const char *device_link_sysfs_path, size_t idx, - char *physPortID, + const char *physPortID, char **netname) { g_autofree char *pcidev_sysfs_net_path = NULL; @@ -2672,7 +2672,7 @@ virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddress *dev G_GNUC_UNUSED, int virPCIGetNetName(const char *device_link_sysfs_path G_GNUC_UNUSED, size_t idx G_GNUC_UNUSED, - char *physPortID G_GNUC_UNUSED, + const char *physPortID G_GNUC_UNUSED, char **netname G_GNUC_UNUSED) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported)); diff --git a/src/util/virpci.h b/src/util/virpci.h index ce6a056c9c..60f93fa87d 100644 --- a/src/util/virpci.h +++ b/src/util/virpci.h @@ -240,7 +240,7 @@ int virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddress *addr, int virPCIGetNetName(const char *device_link_sysfs_path, size_t idx, - char *physPortID, + const char *physPortID, char **netname); bool virPCIDeviceAddressIsValid(virPCIDeviceAddress *addr, -- 2.31.1