diff options
author | Jason Hobbs <jason.hobbs@calxeda.com> | 2011-08-31 10:37:27 -0500 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2011-09-23 07:10:38 -0600 |
commit | e13334c17174847790b1ec68f0e87105b2636c56 (patch) | |
tree | fb11938e90594a0784581d2e77fc52c05e58fcd3 /drivers | |
parent | 43f05efebbd09008bf413058f0f060687a972592 (diff) |
Replace space and tab checks with isblank
These are various places I found that checked for conditions equivalent
to isblank.
Signed-off-by: Jason Hobbs <jason.hobbs@calxeda.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/bios_emulator/x86emu/debug.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/bios_emulator/x86emu/debug.c b/drivers/bios_emulator/x86emu/debug.c index 241acf3a8..6417d0999 100644 --- a/drivers/bios_emulator/x86emu/debug.c +++ b/drivers/bios_emulator/x86emu/debug.c @@ -39,6 +39,7 @@ #include <stdarg.h> #include <common.h> +#include <linux/ctype.h> #include "x86emu/x86emui.h" /*----------------------------- Implementation ----------------------------*/ @@ -333,7 +334,7 @@ static int x86emu_parse_line(char *s, int *ps, int *n) int cmd; *n = 0; - while (*s == ' ' || *s == '\t') + while (isblank(*s)) s++; ps[*n] = *s; switch (*s) { @@ -346,13 +347,13 @@ static int x86emu_parse_line(char *s, int *ps, int *n) } while (1) { - while (*s != ' ' && *s != '\t' && *s != '\n') + while (!isblank(*s) && *s != '\n') s++; if (*s == '\n') return cmd; - while (*s == ' ' || *s == '\t') + while (isblank(*s)) s++; *n += 1; |