diff options
author | Jason Hobbs <jason.hobbs@calxeda.com> | 2011-08-23 11:06:54 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-17 22:25:34 +0200 |
commit | 4d91a6ecabd10652abba696e55e952676db0aae1 (patch) | |
tree | 27336d763e25ab047dc39c4b0c1a82a7bfc1d6ce /lib/hashtable.c | |
parent | ce2d4c9532b338e39f033ef75ae57bcb71c3389e (diff) | |
download | u-boot-4d91a6ecabd10652abba696e55e952676db0aae1.tar.gz |
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 'lib/hashtable.c')
-rw-r--r-- | lib/hashtable.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/hashtable.c b/lib/hashtable.c index 026dbca2fa..6895550d3c 100644 --- a/lib/hashtable.c +++ b/lib/hashtable.c @@ -32,6 +32,7 @@ #ifdef USE_HOSTCC /* HOST build */ # include <string.h> # include <assert.h> +# include <ctype.h> # ifndef debug # ifdef DEBUG @@ -43,6 +44,7 @@ #else /* U-Boot build */ # include <common.h> # include <linux/string.h> +# include <linux/ctype.h> #endif #ifndef CONFIG_ENV_MIN_ENTRIES /* minimum number of entries */ @@ -690,7 +692,7 @@ int himport_r(struct hsearch_data *htab, ENTRY e, *rv; /* skip leading white space */ - while ((*dp == ' ') || (*dp == '\t')) + while (isblank(*dp)) ++dp; /* skip comment lines */ |