mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 10:03:49 +03:00
Rename variable for compilation in Mingw32
* src/virsh.c: rename interface into iface
This commit is contained in:
parent
683241de5a
commit
1499e1d5f4
@ -3307,7 +3307,7 @@ static const vshCmdOptDef opts_interface_define[] = {
|
|||||||
static int
|
static int
|
||||||
cmdInterfaceDefine(vshControl *ctl, const vshCmd *cmd)
|
cmdInterfaceDefine(vshControl *ctl, const vshCmd *cmd)
|
||||||
{
|
{
|
||||||
virInterfacePtr interface;
|
virInterfacePtr iface;
|
||||||
char *from;
|
char *from;
|
||||||
int found;
|
int found;
|
||||||
int ret = TRUE;
|
int ret = TRUE;
|
||||||
@ -3323,12 +3323,12 @@ cmdInterfaceDefine(vshControl *ctl, const vshCmd *cmd)
|
|||||||
if (virFileReadAll(from, VIRSH_MAX_XML_FILE, &buffer) < 0)
|
if (virFileReadAll(from, VIRSH_MAX_XML_FILE, &buffer) < 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
interface = virInterfaceDefineXML(ctl->conn, buffer, 0);
|
iface = virInterfaceDefineXML(ctl->conn, buffer, 0);
|
||||||
free (buffer);
|
free (buffer);
|
||||||
|
|
||||||
if (interface != NULL) {
|
if (iface != NULL) {
|
||||||
vshPrint(ctl, _("Interface %s defined from %s\n"),
|
vshPrint(ctl, _("Interface %s defined from %s\n"),
|
||||||
virInterfaceGetName(interface), from);
|
virInterfaceGetName(iface), from);
|
||||||
} else {
|
} else {
|
||||||
vshError(ctl, FALSE, _("Failed to define interface from %s"), from);
|
vshError(ctl, FALSE, _("Failed to define interface from %s"), from);
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user