summaryrefslogtreecommitdiff
path: root/components/drivers/sdio
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-04-14 11:19:16 +0000
committer[email protected] <[email protected]>2012-04-14 11:19:16 +0000
commita8f967f26a3dcc22c4d466a0bbce5849db7daf44 (patch)
treec6a15fc5b9c4b50cd9a168e6ce124b141d0f461b /components/drivers/sdio
parent4b949cbee02d82753b0340bd5e755d1227fb6310 (diff)
fix compiling warning
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2052 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/sdio')
-rw-r--r--components/drivers/sdio/mmcsd_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/sdio/mmcsd_core.c b/components/drivers/sdio/mmcsd_core.c
index 777f15f2bb..d11bcce3a8 100644
--- a/components/drivers/sdio/mmcsd_core.c
+++ b/components/drivers/sdio/mmcsd_core.c
@@ -175,7 +175,7 @@ rt_int32_t mmcsd_get_cid(struct rt_mmcsd_host *host, rt_uint32_t *cid)
return 0;
}
- buf = (rt_uint8_t *)rt_malloc(16);
+ buf = (rt_uint32_t *)rt_malloc(16);
if (!buf)
{
rt_kprintf("allocate memory failed\n");
@@ -248,7 +248,7 @@ rt_int32_t mmcsd_get_csd(struct rt_mmcsd_card *card, rt_uint32_t *csd)
return 0;
}
- buf = (rt_uint8_t*)rt_malloc(16);
+ buf = (rt_uint32_t*)rt_malloc(16);
if (!buf)
{
rt_kprintf("allocate memory failed\n");