summaryrefslogtreecommitdiff
path: root/include/exports.h
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2011-05-02 21:33:49 +0000
committerWolfgang Denk <wd@denx.de>2011-05-12 21:07:06 +0200
commita7fd0d9ffd32d99255d18aadc88a5ccfb1b09986 (patch)
tree8c580f588e2c88fa22e6115f316603c1d30627ce /include/exports.h
parentf0c0b3a9e6f28a34d6da5edabba1e874fdf8e675 (diff)
downloadu-boot-imx-a7fd0d9ffd32d99255d18aadc88a5ccfb1b09986.zip
u-boot-imx-a7fd0d9ffd32d99255d18aadc88a5ccfb1b09986.tar.gz
u-boot-imx-a7fd0d9ffd32d99255d18aadc88a5ccfb1b09986.tar.bz2
lib, vsprintf: introduce strict_strtoul
as checkpatch proposes to use strict_strtoul instead of simple_strtoul, introduce it. Ported this function from Linux 2.6.38 commit ID: 521cb40b0c44418a4fd36dc633f575813d59a43d Signed-off-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Diffstat (limited to 'include/exports.h')
-rw-r--r--include/exports.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/exports.h b/include/exports.h
index ddd1bf4..e14d727 100644
--- a/include/exports.h
+++ b/include/exports.h
@@ -20,6 +20,7 @@ void __udelay(unsigned long);
unsigned long get_timer(unsigned long);
int vprintf(const char *, va_list);
unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base);
+int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
char *getenv (char *name);
int setenv (char *varname, char *varvalue);
long simple_strtol(const char *cp,char **endp,unsigned int base);