mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
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:
parent
9766d0bac7
commit
7ef618f30a
@ -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));
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user