]> Git Repo - u-boot.git/commitdiff
CM4008: fix signedness of env bootargs string pointer
authorGreg Ungerer <[email protected]>
Sat, 10 Sep 2011 08:36:40 +0000 (18:36 +1000)
committerWolfgang Denk <[email protected]>
Sat, 10 Sep 2011 14:09:47 +0000 (16:09 +0200)
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: Greg Ungerer <[email protected]>
board/cm4008/cm4008.c

index d34737c4979af53539acd9cf36ee5bd9a058ee03..63296f092ba07344f295566c7e73989f1aed5d04 100644 (file)
@@ -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 */
This page took 0.039951 seconds and 4 git commands to generate.