Re: [PATCH 2/4] daemon: use safer memory growth macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 14, 2010 at 10:23:54AM -0600, Eric Blake wrote:
> * daemon/libvirtd.h (qemud_server): Change types of members
> tracking array sizes.
> * daemon/event.c (virEventLoop): Likewise.
> (virEventAddHandleImpl, virEventAddTimeoutImpl)
> (virEventCleanupTimeouts, virEventCleanupHandles): Use
> VIR_EXPAND_N and VIR_SHRINK_N instead of VIR_REALLOC_N.  Tweak
> debug messages to match type changes.
> * daemon/libvirtd.c (qemudDispatchServer, qemudRunLoop): Use
> VIR_EXPAND_N and VIR_SHRINK_N.
> 
> Signed-off-by: Eric Blake <eblake@xxxxxxxxxx>
> ---
>  daemon/event.c    |   44 +++++++++++++++++++-------------------------
>  daemon/libvirtd.c |   10 ++++------
>  daemon/libvirtd.h |   10 +++++-----
>  3 files changed, 28 insertions(+), 36 deletions(-)

ACK, looks nicer.


Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]