Clarification of a comment in tevent.h

Jeremy Allison jra at samba.org
Fri Jan 23 22:53:08 MST 2015


On Fri, Jan 23, 2015 at 09:20:57PM -0800, Richard Sharpe wrote:
> Hi folks,
> 
> I noticed this comment in lib/tevent/tevent.h just before the macro
> for TEVENT_FD_WRITEABLE:
> 
> /**
>  * Convenience function for declaring a tevent_fd writable
>  */
> 
> This suggests that we are making the tevent_fd writable but the usage
> suggests that we are marking the fd_event to say that we are now
> interested in getting events when the FD becomes writable ...
> 
> Have I misunderstood this?

No, the second comment (we're now interested in getting
events) is the correct one.


More information about the samba-technical mailing list