]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
conf: Fix virtType check
authorJohn Ferlan <jferlan@redhat.com>
Fri, 25 Sep 2015 21:33:05 +0000 (17:33 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 25 Sep 2015 21:33:05 +0000 (17:33 -0400)
commit5e06a4f063dc6cf2ae14a361ddeb805d3f3ae440
treee8b4f442697b2b37a3692beb24dec50f73f2a20a
parent7383b8cc068f0e9fd77ca25c6737cd90dbf1c967
conf: Fix virtType check

Commit id '7383b8cc' changed virDomainDef 'virtType' to an enum, that
caused a build failure on some archs due to comparing an unsigned value
to < 0.  Adjust the fetch of 'type' to be into temporary 'int virtType'
and then assign that virtType to the def->virtType
src/conf/domain_conf.c