adjust the coding style in src/ipc.c

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2302 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
dzzxzz@gmail.com 2012-09-24 03:01:48 +00:00
parent bcc6ffac9e
commit 700b16c52b
1 changed files with 3 additions and 3 deletions

View File

@ -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;