[Fwd: [PATCH]: Portability fixes]
Christopher Hegarty - Sun Microsystems
Christopher.Hegarty at Sun.COM
Mon Feb 2 14:13:27 PST 2009
Martin Buchholz wrote:
> On Mon, Feb 2, 2009 at 05:42, Christopher Hegarty - Sun Microsystems
> Ireland <Christopher.Hegarty at sun.com> wrote:
>> +static int isAsciiSpace(char c) {
>> + return (((c) == '\t') || ((c) == '\r') || ((c) == '\b') ||
>> + ((c) == '\n') || ((c) == ' ') );
>> +}
>> +
>
> A very minor comment -
> the parens around (c) are a very good idea in macro definitions,
> but they are overkill in a function definition.
Thanks Martin,
I will remove the parentheses if I proceed with this part of the change.
After the comments from Alan, I'm going to check with the Solaris folks
on the status of 4160367, which appears to be fixed in S10 and greater.
If we can I would like to remove the isspace check completely.
-Chris.
More information about the net-dev
mailing list