mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
util: Fix const'ness of 1st arg to virPCIGetNetName()
The first arg isn't modified in the function, so it should be const.
This commit is contained in:
parent
48f33bb5df
commit
0dc67e6d2d
@ -2857,7 +2857,7 @@ virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr addr,
|
||||
* Returns the network device name of a pci device
|
||||
*/
|
||||
int
|
||||
virPCIGetNetName(char *device_link_sysfs_path, char **netname)
|
||||
virPCIGetNetName(const char *device_link_sysfs_path, char **netname)
|
||||
{
|
||||
char *pcidev_sysfs_net_path = NULL;
|
||||
int ret = -1;
|
||||
@ -2991,7 +2991,7 @@ virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr dev ATTRIBUTE_UNUSED,
|
||||
}
|
||||
|
||||
int
|
||||
virPCIGetNetName(char *device_link_sysfs_path ATTRIBUTE_UNUSED,
|
||||
virPCIGetNetName(const char *device_link_sysfs_path ATTRIBUTE_UNUSED,
|
||||
char **netname ATTRIBUTE_UNUSED)
|
||||
{
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
|
||||
|
@ -207,7 +207,7 @@ int virPCIGetVirtualFunctionIndex(const char *pf_sysfs_device_link,
|
||||
int virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr addr,
|
||||
char **pci_sysfs_device_link);
|
||||
|
||||
int virPCIGetNetName(char *device_link_sysfs_path, char **netname);
|
||||
int virPCIGetNetName(const char *device_link_sysfs_path, char **netname);
|
||||
|
||||
int virPCIGetSysfsFile(char *virPCIDeviceName,
|
||||
char **pci_sysfs_device_link)
|
||||
|
Loading…
Reference in New Issue
Block a user