diff options
author | Greg Ungerer <greg.ungerer@opengear.com> | 2011-09-10 18:37:21 +1000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-09-10 16:10:20 +0200 |
commit | a00e749d5b172b69bcf84e5fee36b2d20ee67b10 (patch) | |
tree | b01a230187d0c31f6ce2534fcc528241b1a023d2 /board/cm41xx/cm41xx.c | |
parent | 61a1926ac8eaa3ef0713063c4327a38b3712373a (diff) |
CM41xx: fix signedness of env bootargs string pointer
The pointer to the flash based bootargs should be a "char *", not unsigned.
Fixes:
cm41xx.c: In function ‘env_flash_cmdline’:
cm41xx.c:67: warning: pointer targets in passing argument 2 of ‘setenv’ differ in signedness
Signed-off-by: Greg Ungerer <greg.ungerer@opengear.com>
Diffstat (limited to 'board/cm41xx/cm41xx.c')
-rw-r--r-- | board/cm41xx/cm41xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/cm41xx/cm41xx.c b/board/cm41xx/cm41xx.c index 02d05afef6..9a6d89fdc6 100644 --- a/board/cm41xx/cm41xx.c +++ b/board/cm41xx/cm41xx.c @@ -46,8 +46,8 @@ DECLARE_GLOBAL_DATA_PTR; */ int env_flash_cmdline (void) { - unsigned char *sp = (unsigned char *) 0x0201c020; - unsigned char *ep; + char *sp = (char *) 0x0201c020; + char *ep; int len; /* Check if "erase" push button is depressed */ |