mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05: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:
1 parent
6225cb3df5
commit
f14c8a6be5
1 file changed
+4
-4
@@ -1802,11 +1802,11 @@ virNetDevLinkDump(const char *ifname ATTRIBUTE_UNUSED,
|
||||
}
|
||||
|
||||
int
|
||||
virNetDevReplaceNetConfig(char *linkdev ATTRIBUTE_UNUSED,
|
||||
virNetDevReplaceNetConfig(const char *linkdev ATTRIBUTE_UNUSED,
|
||||
int vf ATTRIBUTE_UNUSED,
|
||||
const virMacAddr *macaddress ATTRIBUTE_UNUSED,
|
||||
int vlanid ATTRIBUTE_UNUSED,
|
||||
char *stateDir ATTRIBUTE_UNUSED)
|
||||
const char *stateDir ATTRIBUTE_UNUSED)
|
||||
{
|
||||
virReportSystemError(ENOSYS, "%s",
|
||||
_("Unable to replace net config on this platform"));
|
||||
@@ -1815,9 +1815,9 @@ virNetDevReplaceNetConfig(char *linkdev ATTRIBUTE_UNUSED,
|
||||
}
|
||||
|
||||
int
|
||||
virNetDevRestoreNetConfig(char *linkdev ATTRIBUTE_UNUSED,
|
||||
virNetDevRestoreNetConfig(const char *linkdev ATTRIBUTE_UNUSED,
|
||||
int vf ATTRIBUTE_UNUSED,
|
||||
char *stateDir ATTRIBUTE_UNUSED)
|
||||
const char *stateDir ATTRIBUTE_UNUSED)
|
||||
{
|
||||
virReportSystemError(ENOSYS, "%s",
|
||||
_("Unable to restore net config on this platform"));
|
||||
|
||||
Reference in new issue
Block a user