mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +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
|
||||
cmdInterfaceDefine(vshControl *ctl, const vshCmd *cmd)
|
||||
{
|
||||
virInterfacePtr interface;
|
||||
virInterfacePtr iface;
|
||||
char *from;
|
||||
int found;
|
||||
int ret = TRUE;
|
||||
@ -3323,12 +3323,12 @@ cmdInterfaceDefine(vshControl *ctl, const vshCmd *cmd)
|
||||
if (virFileReadAll(from, VIRSH_MAX_XML_FILE, &buffer) < 0)
|
||||
return FALSE;
|
||||
|
||||
interface = virInterfaceDefineXML(ctl->conn, buffer, 0);
|
||||
iface = virInterfaceDefineXML(ctl->conn, buffer, 0);
|
||||
free (buffer);
|
||||
|
||||
if (interface != NULL) {
|
||||
if (iface != NULL) {
|
||||
vshPrint(ctl, _("Interface %s defined from %s\n"),
|
||||
virInterfaceGetName(interface), from);
|
||||
virInterfaceGetName(iface), from);
|
||||
} else {
|
||||
vshError(ctl, FALSE, _("Failed to define interface from %s"), from);
|
||||
ret = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user