mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
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>
This commit is contained in:
parent
61a1926ac8
commit
a00e749d5b
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||||
*/
|
*/
|
||||||
int env_flash_cmdline (void)
|
int env_flash_cmdline (void)
|
||||||
{
|
{
|
||||||
unsigned char *sp = (unsigned char *) 0x0201c020;
|
char *sp = (char *) 0x0201c020;
|
||||||
unsigned char *ep;
|
char *ep;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
/* Check if "erase" push button is depressed */
|
/* Check if "erase" push button is depressed */
|
||||||
|
|
Loading…
Add table
Reference in a new issue