On Fri, 7 Oct 2022 09:18:14 -0700
Stephen Hemminger <step...@networkplumber.org> wrote:

> On Fri, 07 Oct 2022 18:08:57 +0200
> Thomas Monjalon <tho...@monjalon.net> wrote:
> 
> > > + /* Ensure that we have one and only one source of Rx buffers */
> > > + if ((mp != NULL) +    
> > 
> > + operator?
> > Are we sure a boolean is always translated as 1?  
> 
> Yes, it is likely part of C standard.


Found it: https://en.cppreference.com/w/c/language/operator_comparison
        The type of any equality operator expression is int, and its value 
(which is not an lvalue) is 1
        when the specified relationship holds true and ​0​ when the specified 
relationship does not hold.

Reply via email to