]> git.ipfire.org Git - thirdparty/libvirt.git/commit
daemon: use safer memory growth macros
authorEric Blake <eblake@redhat.com>
Fri, 13 Aug 2010 22:19:54 +0000 (16:19 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 18 Nov 2010 19:21:57 +0000 (12:21 -0700)
commite6b68d7479de7e2ce44405daa960b6f99fc98239
treef538a9d13dbdd2f4826f51cd720219b46960e99f
parent269d3b72f60303d99965b9e89779b3c869c3f2cc
daemon: use safer memory growth macros

* daemon/libvirtd.h (qemud_server): Change types of members
tracking array sizes, and add allocation trackers.
* daemon/event.c (virEventLoop): Likewise.
(virEventAddHandleImpl, virEventAddTimeoutImpl)
(virEventCleanupTimeouts, virEventCleanupHandles): Use
VIR_RESIZE_N instead of VIR_REALLOC_N.  Tweak debug messages to
match type changes.
* daemon/libvirtd.c (qemudDispatchServer, qemudRunLoop): Likewise.
daemon/event.c
daemon/libvirtd.c
daemon/libvirtd.h