]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: use VIR_(APPEND|DELETE)_ELEMENT for pci/usb device lists
authorLaine Stump <laine@laine.org>
Fri, 5 Jul 2013 18:46:35 +0000 (14:46 -0400)
committerLaine Stump <laine@laine.org>
Thu, 11 Jul 2013 02:52:12 +0000 (22:52 -0400)
commit22c6829bc2a630b0954560bc85172557024b10d7
treed26d2a7bc8602abc92d1472dfbb481bf68a806cb
parent9ec23a6663e5df7df41d9652e7db338f39d586f5
util: use VIR_(APPEND|DELETE)_ELEMENT for pci/usb device lists

Eliminate memmove() by using VIR_*_ELEMENT API instead.

In both pci and usb cases, the count that held the size of the list
was unsigned int so it had to be changed to size_t.
src/util/virpci.c
src/util/virusb.c