>>> Johannes Thumshirn <jthumsh...@suse.de> schrieb am 10.08.2017 um 10:24 in
Nachricht <20170810082456.gi4...@linux-x5ow.site>:
> On Wed, Aug 09, 2017 at 04:11:18PM +0200, Benjamin Block wrote:
>> +    return 0 == (bc->hdr.flags & BSG_FLAG_Q_AT_TAIL);
> return !(bc->hdr.flags & BSG_FLAG_Q_AT_TAIL); and make the function return
> bool? I have to admit, this is the 1st time I have seen the above construct.

So you never programmed BASIC like "goto 100 + (A >50) * 10 + (C < 7) * 10"? ;-)

The second variant is maybe a bit more modern as is converts Boolean to Boolean 
(that doesn't exist in classic C, BTW), while the first variant compares an 
integer with a "boolean" (that doesn't exist), to make another "boolean". 
Usually compilers handle this rather identical (IMHO).


> Thanks,
>       Johannes

You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to