summaryrefslogtreecommitdiff
path: root/lib_mips
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.(none)>2005-12-04 00:40:34 +0100
committerWolfgang Denk <wd@pollux.(none)>2005-12-04 00:40:34 +0100
commitf013dacf0a90667fbefe35580f8031a84caeb65e (patch)
tree7e6f5ecf1ce7d800c13b0342ba10d67486c52636 /lib_mips
parentc75eba3b4140187cd0d9bd8049f5df4c49b6889b (diff)
downloadu-boot-imx-f013dacf0a90667fbefe35580f8031a84caeb65e.zip
u-boot-imx-f013dacf0a90667fbefe35580f8031a84caeb65e.tar.gz
u-boot-imx-f013dacf0a90667fbefe35580f8031a84caeb65e.tar.bz2
Code cleanup, especially MIPS for GCC 4.x
Diffstat (limited to 'lib_mips')
-rw-r--r--lib_mips/board.c2
-rw-r--r--lib_mips/mips_linux.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib_mips/board.c b/lib_mips/board.c
index 5dfdf90..b7d3356 100644
--- a/lib_mips/board.c
+++ b/lib_mips/board.c
@@ -125,7 +125,7 @@ static void display_flash_config(ulong size)
static int init_baudrate (void)
{
- uchar tmp[64]; /* long enough for environment variables */
+ char tmp[64]; /* long enough for environment variables */
int i = getenv_r ("baudrate", tmp, sizeof (tmp));
gd->baudrate = (i > 0)
diff --git a/lib_mips/mips_linux.c b/lib_mips/mips_linux.c
index 18eafe1..12e8435 100644
--- a/lib_mips/mips_linux.c
+++ b/lib_mips/mips_linux.c
@@ -94,7 +94,7 @@ void do_bootm_linux (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[],
checksum = ntohl (hdr->ih_hcrc);
hdr->ih_hcrc = 0;
- if (crc32 (0, (char *) data, len) != checksum) {
+ if (crc32 (0, (uchar *) data, len) != checksum) {
printf ("Bad Header Checksum\n");
SHOW_BOOT_PROGRESS (-11);
do_reset (cmdtp, flag, argc, argv);
@@ -111,7 +111,7 @@ void do_bootm_linux (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[],
ulong csum = 0;
printf (" Verifying Checksum ... ");
- csum = crc32 (0, (char *) data, len);
+ csum = crc32 (0, (uchar *) data, len);
if (csum != ntohl (hdr->ih_dcrc)) {
printf ("Bad Data CRC\n");
SHOW_BOOT_PROGRESS (-12);