[libvirt] [PATCH] add sentinel attribute

Paolo Bonzini pbonzini at redhat.com
Thu Nov 5 17:07:54 UTC 2009


On 11/05/2009 06:04 PM, Daniel Veillard wrote:
>> >  +static int ATTRIBUTE_SENTINEL
>> >    ebtablesAddRemoveRule(ebtRules *rules, int action, const char *arg, ...)
>> >    {
>    I'm just surprized by having the __attribute__ being inserted before
> the function name, I would expect to have it between the
> end of the arguments ) and the curly brace { for this to work correctly.

For prototypes you can place it in either position, but in this case we 
have no prototype so you have to place it there.  I wasn't sure either, 
so I did try triggering it and it works in both cases.

Paolo




More information about the libvir-list mailing list