From 22b777300dfe598746d92f7f3e25df07e90c9fe3 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 7 Feb 2014 09:23:28 +0100 Subject: [PATCH] added typecasts for the used send/receive buffer pointer buff --- cpu/lpc2387/mci/lpc2387-mci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpu/lpc2387/mci/lpc2387-mci.c b/cpu/lpc2387/mci/lpc2387-mci.c index 869e7081fc..b04aa3c341 100644 --- a/cpu/lpc2387/mci/lpc2387-mci.c +++ b/cpu/lpc2387/mci/lpc2387-mci.c @@ -879,7 +879,7 @@ DRESULT MCI_ioctl( ) { DRESULT res; - unsigned char b, *ptr = buff; + unsigned char b, *ptr = (unsigned char *)buff; unsigned long resp[4], d, *dp, st, ed; @@ -937,7 +937,7 @@ DRESULT MCI_ioctl( break; /* Check if sector erase can be applied to the card */ } - dp = buff; + dp = (unsigned long *)buff; st = dp[0]; ed = dp[1]; @@ -1000,7 +1000,7 @@ DRESULT MCI_ioctl( while ((XferWp == 0) && !(XferStat & 0xC)); if (!(XferStat & 0xC)) { - Copy_al2un(buff, DmaBuff[0], 64); + Copy_al2un((unsigned char *)buff, DmaBuff[0], 64); res = RES_OK; } }