瀏覽代碼

修复mdk5警告

mysterywolf 5 年之前
父節點
當前提交
3daf2351f8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mailbox_sample.c

+ 1 - 1
mailbox_sample.c

@@ -42,7 +42,7 @@ static void thread1_entry(void *parameter)
         rt_kprintf("thread1: try to recv a mail\n");
 
         /* 从邮箱中收取邮件 */
-        if (rt_mb_recv(&mb, (rt_uint32_t *)&str, RT_WAITING_FOREVER) == RT_EOK)
+        if (rt_mb_recv(&mb, (rt_ubase_t *)&str, RT_WAITING_FOREVER) == RT_EOK)
         {
             rt_kprintf("thread1: get a mail from mailbox, the content:%s\n", str);
             if (str == mb_str3)