mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:

committed by
Wolfgang Denk

parent
ce2d4c9532
commit
4d91a6ecab
@ -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 */
|
||||
|
Reference in New Issue
Block a user