提交 700b16c5 编写于 作者: D dzzxzz@gmail.com

adjust the coding style in src/ipc.c

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2302 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 bcc6ffac
......@@ -261,7 +261,7 @@ rt_sem_t rt_sem_create(const char *name, rt_uint32_t value, rt_uint8_t flag)
rt_ipc_object_init(&(sem->parent));
/* set init value */
sem->value = value;
sem->value = value;
/* set parent */
sem->parent.parent.flag = flag;
......@@ -332,7 +332,7 @@ rt_err_t rt_sem_take(rt_sem_t sem, rt_int32_t time)
else
{
/* no waiting, return with timeout */
if (time == 0 )
if (time == 0)
{
rt_hw_interrupt_enable(temp);
......@@ -1285,7 +1285,7 @@ rt_mailbox_t rt_mb_create(const char *name, rt_size_t size, rt_uint8_t flag)
return RT_NULL;
}
mb->entry = 0;
mb->entry = 0;
mb->in_offset = 0;
mb->out_offset = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册