]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: avoid variable named 'interface', for mingw
authorEric Blake <eblake@redhat.com>
Sat, 28 Mar 2015 20:04:27 +0000 (14:04 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 28 Mar 2015 20:12:55 +0000 (14:12 -0600)
commit75d56f51f7fc0c987660e2e1dcce8db50d477f7a
tree357d695ed8a372f866050bfec52f2a99afcbe1d2
parentcf6ab17e45878886488d10a6ffa160a3d06c4c1a
build: avoid variable named 'interface', for mingw

Commit 2f36e6944 (re-)introduced a use of an identifier 'interface',
which causes this build failure on mingw:

../../tools/virsh-domain-monitor.c: In function 'cmdDomIfAddr':
../../tools/virsh-domain-monitor.c:2233:17: error: expected identifier or '(' before 'struct'
     const char *interface = NULL;
                      ^

See also commit 6512c8b.  Sadly, I'm not quite sure how to write a
syntax check that can poison the use of this identifier.

* tools/virsh-domain-monitor.c (cmdDomIfAddr): Use ifacestr instead.

Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virsh-domain-monitor.c