[libvirt] [PATCH 3/2] event: use newer array management macros
Eric Blake
eblake at redhat.com
Mon Jan 6 15:04:08 UTC 2014
On 01/06/2014 07:06 AM, John Ferlan wrote:
>
>
> On 01/03/2014 04:11 PM, Eric Blake wrote:
>> We might as well take advantage of viralloc.h instead of open-coding
>> array management ourselves. While at it, I simplified several
>> places that were doing repetitive pointer chasing to use an
>> intermediate variable for legibility (some other places remain,
>> but they will disapper in later refactoring patches).
>>
>> * src/conf/object_event_private.h (_virObjectEventCallbackList):
>> Use size_t for count.
>> * src/conf/object_event.c (_virObjectEventQueue): Likewise.
>> (virObjectEventCallbackListRemoveID): Use VIR_DELETE_ELEMENT.
>> (virObjectEventQueuePush, virObjectEventCallbackListAddID): Use
>> VIR_APPEND_ELEMENT.
>> (virObjectEventCallbackListEventID)
>> (virObjectEventStateDispatchCallbacks): Simplify code.
>>
>> Signed-off-by: Eric Blake <eblake at redhat.com>
>> ---
>> src/conf/object_event.c | 108 ++++++++++++++++------------------------
>> src/conf/object_event_private.h | 2 +-
>> 2 files changed, 44 insertions(+), 66 deletions(-)
>>
>
> ACK
>
Thanks; pushed.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140106/e993c735/attachment-0001.sig>
More information about the libvir-list
mailing list