diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2012-12-11 11:09:42 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-12-13 11:46:02 -0700 |
commit | 3ec44111aa33f568493f565285a3a519ef38e1dc (patch) | |
tree | 8348dda2775389447fd23cb0b076b5b5a2b5657b /include/exports.h | |
parent | caddc17f3019a437b972cd04a8c9a9cbea344def (diff) | |
download | u-boot-imx-3ec44111aa33f568493f565285a3a519ef38e1dc.zip u-boot-imx-3ec44111aa33f568493f565285a3a519ef38e1dc.tar.gz u-boot-imx-3ec44111aa33f568493f565285a3a519ef38e1dc.tar.bz2 |
vsprintf:fix: Change type returned by ustrtoul
The ustrtoul shall convert string defined size (e.g. 1GiB) to unsigned
long type (as its name implies).
Up till now it had returned int, which might cause problems with large
numbers (GiB range), when interpreted as U2 signed numbers.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'include/exports.h')
-rw-r--r-- | include/exports.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exports.h b/include/exports.h index 63aa4b2..6cf31aa 100644 --- a/include/exports.h +++ b/include/exports.h @@ -23,7 +23,7 @@ char *getenv (const char *name); int setenv (const char *varname, const char *varvalue); long simple_strtol(const char *cp,char **endp,unsigned int base); int strcmp(const char * cs,const char * ct); -int ustrtoul(const char *cp, char **endp, unsigned int base); +unsigned long ustrtoul(const char *cp, char **endp, unsigned int base); #if defined(CONFIG_CMD_I2C) int i2c_write (uchar, uint, int , uchar* , int); int i2c_read (uchar, uint, int , uchar* , int); |