virPCIGetNetName: Make 'physPortID' argument const

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-08-04 17:54:42 +02:00
parent 9766d0bac7
commit 7ef618f30a
2 changed files with 3 additions and 3 deletions

View File

@ -2461,7 +2461,7 @@ virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddress *addr,
int int
virPCIGetNetName(const char *device_link_sysfs_path, virPCIGetNetName(const char *device_link_sysfs_path,
size_t idx, size_t idx,
char *physPortID, const char *physPortID,
char **netname) char **netname)
{ {
g_autofree char *pcidev_sysfs_net_path = NULL; g_autofree char *pcidev_sysfs_net_path = NULL;
@ -2672,7 +2672,7 @@ virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddress *dev G_GNUC_UNUSED,
int int
virPCIGetNetName(const char *device_link_sysfs_path G_GNUC_UNUSED, virPCIGetNetName(const char *device_link_sysfs_path G_GNUC_UNUSED,
size_t idx 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) char **netname G_GNUC_UNUSED)
{ {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported)); virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));

View File

@ -240,7 +240,7 @@ int virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddress *addr,
int virPCIGetNetName(const char *device_link_sysfs_path, int virPCIGetNetName(const char *device_link_sysfs_path,
size_t idx, size_t idx,
char *physPortID, const char *physPortID,
char **netname); char **netname);
bool virPCIDeviceAddressIsValid(virPCIDeviceAddress *addr, bool virPCIDeviceAddressIsValid(virPCIDeviceAddress *addr,