summaryrefslogtreecommitdiff
path: root/common/ft_build.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2007-02-20 09:05:07 +0100
committerStefan Roese <sr@denx.de>2007-02-20 09:05:07 +0100
commit80ba981d940471fe7e539e64fa3d2bd80002beda (patch)
tree0de9e58f4152cfd4a7a6e33baed527f6f785b403 /common/ft_build.c
parentc95c4280d751ca078c2ff58228d2f2b44ccf0600 (diff)
downloadu-boot-imx-80ba981d940471fe7e539e64fa3d2bd80002beda.zip
u-boot-imx-80ba981d940471fe7e539e64fa3d2bd80002beda.tar.gz
u-boot-imx-80ba981d940471fe7e539e64fa3d2bd80002beda.tar.bz2
[PATCH 4_4] Remove local implementation of isprint() in ft_build.c
isprint is already defined in ctype.c Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'common/ft_build.c')
-rw-r--r--common/ft_build.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/common/ft_build.c b/common/ft_build.c
index 980e40f..5a0575e 100644
--- a/common/ft_build.c
+++ b/common/ft_build.c
@@ -29,6 +29,7 @@
#include <stddef.h>
#include <ft_build.h>
+#include <linux/ctype.h>
#undef DEBUG
@@ -180,11 +181,6 @@ void ft_finalize_tree(struct ft_cxt *cxt) {
bph->dt_strings_size = cxt->p_end - cxt->p;
}
-static inline int isprint(int c)
-{
- return c >= 0x20 && c <= 0x7e;
-}
-
static int is_printable_string(const void *data, int len)
{
const char *s = data;