From: Andreas Fenkart Date: Fri, 11 Mar 2016 08:39:35 +0000 (+0100) Subject: tools: env: replace WHITESPACE macro by isblank X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=10667e15f48613e264a4da78a36bbd7daf5c4ce8;p=u-boot.git tools: env: replace WHITESPACE macro by isblank Signed-off-by: Andreas Fenkart --- diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index ee17a69016..bded9f64c7 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -36,8 +37,6 @@ #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) -#define WHITESPACE(c) ((c == '\t') || (c == ' ')) - #define min(x, y) ({ \ typeof(x) _min1 = (x); \ typeof(y) _min2 = (y); \ @@ -140,8 +139,8 @@ static char *fw_string_blank(char *s, int noblank) int len = strlen(s); for (i = 0; i < len; i++, s++) { - if ((noblank && !WHITESPACE(*s)) || - (!noblank && WHITESPACE(*s))) + if ((noblank && !isblank(*s)) || + (!noblank && isblank(*s))) break; } if (i == len)