]> git.ipfire.org Git - thirdparty/libvirt.git/commit
logical: Use VIR_APPEND_ELEMENT instead of VIR_REALLOC_N
authorJohn Ferlan <jferlan@redhat.com>
Mon, 1 Feb 2016 14:39:00 +0000 (09:39 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 2 Feb 2016 18:12:57 +0000 (13:12 -0500)
commit69267756d08adbc2f82cd0a9dab12f953ad71435
treef2151ead7daeea0cba1d17373b09981d0fa340be
parent0d0e41a71910e0415a924648f44a0b00389a576a
logical: Use VIR_APPEND_ELEMENT instead of VIR_REALLOC_N

Rather than preallocating a set number of elements, then walking through
the extents and adjusting the specific element in place, use the APPEND
macros to handle that chore.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/storage_conf.h
src/storage/storage_backend_logical.c