Re: [PATCH] Rename 'remove' param to 'toremove' to avoid clash with Win32 header

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

 



On 11/23/2010 06:33 AM, Daniel P. Berrange wrote:
> The win32 headers have a function called 'remove' declared. This
> clashes with the 'remove' parameter in virShrinkN

Not just win32, but all <stdio.h> implementations.

> 
> * src/util/memory.c: Rename 'remove' to 'toremove'
> ---
>  src/util/memory.c |   12 ++++++------
>  1 files changed, 6 insertions(+), 6 deletions(-)

ACK.  Wonder why -Wshadow didn't catch that for me?

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]