From 8eedc94018ad380304b7fa3de8aecc504bda543c Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 8 Oct 2004 19:20:20 +0000 Subject: Fixed warning when compiling with PREFER_C_WRITING git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5229 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware') diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index ce136a4f96..60b6a87488 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -470,7 +470,7 @@ static void copy_write_sectors(const unsigned char* buf, int wordcount) if ( (unsigned int)buf & 1) { /* not 16-bit aligned, copy byte by byte */ unsigned short tmp = 0; - unsigned char* bufend = buf + wordcount*2; + const unsigned char* bufend = buf + wordcount*2; do { /* loop compiles to 9 assembler instructions */ /* takes 13 clock cycles (2 pipeline stalls) */ -- cgit v1.2.3