Re: [libvirt] [PATCH] add sentinel attribute

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

 



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

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