Re: [PATCH v2] util: Forbid calling hash APIs from iterator callback

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

 



On 03/17/2011 01:30 PM, Eric Blake wrote:
>> +++ b/src/util/hash.c
>> @@ -35,6 +35,12 @@
>>  
>>  /* #define DEBUG_GROW */
>>  
>> +#define virHashIterationError(ret)                                      \
>> +    do {                                                                \
>> +        VIR_ERROR0(_("Hash operation not allowed during iteration"));   \
>> +        return ret;                                                     \
>> +    } while (0)
> 
> ACK; nice helper macro.

Except that it causes 'make syntax-check' to fail.

Pushing this under the build-breaker rule:

diff --git i/po/POTFILES.in w/po/POTFILES.in
index 1ed2765..b2ab946 100644
--- i/po/POTFILES.in
+++ w/po/POTFILES.in
@@ -89,6 +89,7 @@ src/util/command.c
 src/util/conf.c
 src/util/dnsmasq.c
 src/util/event_poll.c
+src/util/hash.c
 src/util/hooks.c
 src/util/hostusb.c
 src/util/interface.c

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