]> git.sur5r.net Git - u-boot/blobdiff - lib/hashtable.c
x86: Rename include/asm/ic to include/asm/arch-sc520
[u-boot] / lib / hashtable.c
index 026dbca2fadecbd4533ca5d552973dc532d78c97..6895550d3cae5a7ac476f3aa8770542fefd87e1f 100644 (file)
@@ -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 */