]> xenbits.xensource.com Git - people/dariof/libvirt.git/commit
build: avoid C99 for loop
authorEric Blake <eblake@redhat.com>
Mon, 26 Nov 2012 16:25:21 +0000 (09:25 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 26 Nov 2012 22:28:25 +0000 (15:28 -0700)
commit7e5aa78d0f7f4cbf1c8154d5004f251fc25ddaf4
tree37a9f7601185d8550a2a6a4cd8cc7484005abc53
parent067e83ebee8ba98a019b1f8bd677c5fb13e25f78
build: avoid C99 for loop

Although we require various C99 features, we don't yet require a
complete C99 compiler.  On RHEL 5, compilation complained:

qemu/qemu_command.c: In function 'qemuBuildGraphicsCommandLine':
qemu/qemu_command.c:4688: error: 'for' loop initial declaration used outside C99 mode

* src/qemu/qemu_command.c (qemuBuildGraphicsCommandLine): Declare
variable sooner.
* src/qemu/qemu_process.c (qemuProcessInitPasswords): Likewise.
src/qemu/qemu_command.c
src/qemu/qemu_process.c