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

Re: [libvirt] hooks mechanism - possible source code bug



On 05/28/2010 05:33 AM, Paolo Smiraglia wrote:
> I'm working on hooks mechanism. When I try to add some field in enum
> 
>     virHookQemuOp
> 
> make command return me error
> 
>     $ util/hooks.c:***: error: negative width in bit-field
> 'verify_error_if_negative_size__'
> 
> I think the error is caused by a little programming error in
> 
>    /src/util/hooks.c:74
> 
> where the struct virHookLxcOp is allocated by macro VIR_ENUM_IMPL with
> dimension VIR_HOOK_QEMU_OP_LAST and not with VIR_HOOK_LXC_OP_LAST.

Good catch.  ACK, and pushed in your name.

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

Attachment: signature.asc
Description: OpenPGP digital signature


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