Skip to content
Snippets Groups Projects
Commit 61a1926a authored by Greg Ungerer's avatar Greg Ungerer Committed by Wolfgang Denk
Browse files

CM4008: fix signedness of env bootargs string pointer


The pointer to the flash based bootargs should be a "char *", not unsigned.
Fixes:

cm4008.c: In function ‘env_flash_cmdline’:
cm4008.c:67: warning: pointer targets in passing argument 2 of ‘setenv’ differ in signedness

Signed-off-by: default avatarGreg Ungerer <greg.ungerer@opengear.com>
parent ea95cb73
No related branches found
No related tags found
No related merge requests found
...@@ -46,8 +46,8 @@ DECLARE_GLOBAL_DATA_PTR; ...@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment