mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
Fix type mismatch of virNetDev*NetConfig on non-Linux
Commit b4bbaee
changed char* to const char*, but omitted
the non-Linux version.
This commit is contained in:
parent
6225cb3df5
commit
f14c8a6be5
@ -1802,11 +1802,11 @@ virNetDevLinkDump(const char *ifname ATTRIBUTE_UNUSED,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
virNetDevReplaceNetConfig(char *linkdev ATTRIBUTE_UNUSED,
|
virNetDevReplaceNetConfig(const char *linkdev ATTRIBUTE_UNUSED,
|
||||||
int vf ATTRIBUTE_UNUSED,
|
int vf ATTRIBUTE_UNUSED,
|
||||||
const virMacAddr *macaddress ATTRIBUTE_UNUSED,
|
const virMacAddr *macaddress ATTRIBUTE_UNUSED,
|
||||||
int vlanid ATTRIBUTE_UNUSED,
|
int vlanid ATTRIBUTE_UNUSED,
|
||||||
char *stateDir ATTRIBUTE_UNUSED)
|
const char *stateDir ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
virReportSystemError(ENOSYS, "%s",
|
virReportSystemError(ENOSYS, "%s",
|
||||||
_("Unable to replace net config on this platform"));
|
_("Unable to replace net config on this platform"));
|
||||||
@ -1815,9 +1815,9 @@ virNetDevReplaceNetConfig(char *linkdev ATTRIBUTE_UNUSED,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
virNetDevRestoreNetConfig(char *linkdev ATTRIBUTE_UNUSED,
|
virNetDevRestoreNetConfig(const char *linkdev ATTRIBUTE_UNUSED,
|
||||||
int vf ATTRIBUTE_UNUSED,
|
int vf ATTRIBUTE_UNUSED,
|
||||||
char *stateDir ATTRIBUTE_UNUSED)
|
const char *stateDir ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
virReportSystemError(ENOSYS, "%s",
|
virReportSystemError(ENOSYS, "%s",
|
||||||
_("Unable to restore net config on this platform"));
|
_("Unable to restore net config on this platform"));
|
||||||
|
Loading…
Reference in New Issue
Block a user