Rename variable for compilation in Mingw32

* src/virsh.c: rename interface into iface
This commit is contained in:
Laine Stump 2009-07-22 10:32:03 +02:00 committed by Daniel Veillard
parent 683241de5a
commit 1499e1d5f4

View File

@ -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;