]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Use switch instead of ifs in qemuBuildGraphicsCommandLine
authorPeter Krempa <pkrempa@redhat.com>
Mon, 22 Apr 2013 13:13:46 +0000 (15:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 23 Apr 2013 19:30:55 +0000 (21:30 +0200)
commitbd15ee89a796f95ea21da4a03383a966b397c432
tree158bc4866b99ee1ac9364e39817186a8cb51afb1
parent66135c72080b000a0be4f59f07c5b4d3fdcb0152
qemu: Use switch instead of ifs in qemuBuildGraphicsCommandLine

Switch the function from a bunch of ifs to a switch statement with
correct type and reflow some code.

Also fix comment in enum describing possible graphics types
src/conf/domain_conf.h
src/qemu/qemu_command.c