Re: [U-Boot] [PATCH v4 06/13] Replace space and tab checks with isblank

2011-08-24 Thread Jason Hobbs
On Tue, Aug 23, 2011 at 05:42:59PM -0400, Mike Frysinger wrote: On Tuesday, August 23, 2011 17:06:54 Jason Hobbs wrote: - while (*nn == ' ' || *nn == '\t') + while (isblank(*nn)) nn++; at least for these walking forward ones, they could be replaced with: nn +=

[U-Boot] [PATCH v4 06/13] Replace space and tab checks with isblank

2011-08-23 Thread Jason Hobbs
These are various places I found that checked for conditions equivalent to isblank. Signed-off-by: Jason Hobbs jason.ho...@calxeda.com --- new in v4 board/hymod/env.c|9 + common/command.c |9 + common/main.c

Re: [U-Boot] [PATCH v4 06/13] Replace space and tab checks with isblank

2011-08-23 Thread Mike Frysinger
On Tuesday, August 23, 2011 17:06:54 Jason Hobbs wrote: - while (*nn == ' ' || *nn == '\t') + while (isblank(*nn)) nn++; at least for these walking forward ones, they could be replaced with: nn += strspn(nn, \t); -mike signature.asc Description: This is a