summaryrefslogtreecommitdiff
path: root/drivers/bios_emulator
diff options
context:
space:
mode:
authorJason Hobbs <jason.hobbs@calxeda.com>2011-08-23 11:06:54 +0000
committerWolfgang Denk <wd@denx.de>2011-10-17 22:25:34 +0200
commit4d91a6ecabd10652abba696e55e952676db0aae1 (patch)
tree27336d763e25ab047dc39c4b0c1a82a7bfc1d6ce /drivers/bios_emulator
parentce2d4c9532b338e39f033ef75ae57bcb71c3389e (diff)
downloadu-boot-imx-4d91a6ecabd10652abba696e55e952676db0aae1.zip
u-boot-imx-4d91a6ecabd10652abba696e55e952676db0aae1.tar.gz
u-boot-imx-4d91a6ecabd10652abba696e55e952676db0aae1.tar.bz2
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/bios_emulator')
-rw-r--r--drivers/bios_emulator/x86emu/debug.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/bios_emulator/x86emu/debug.c b/drivers/bios_emulator/x86emu/debug.c
index 241acf3..6417d09 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;