vfprintf typing problem

Carlos O'Donell carlos@systemhalted.org
Mon Apr 2 12:43:00 GMT 2012


On Mon, Apr 2, 2012 at 7:09 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> David Miller <davem@davemloft.net> writes:
>
>> +    if (0 <= retval)
>           retval >= 0

Why do you make this suggestion? Is this just so that the code follows
the existing style?

Placing the constant first has the benefit that it avoids accidental
assignment, but does require practice to read it easily while parsing
code.

Cheers,
Carlos.



More information about the Libc-alpha mailing list