diff options
| author | [email protected] <[email protected]> | 2012-09-24 03:01:48 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-09-24 03:01:48 +0000 |
| commit | 700b16c52b19885a9bf878009fa40c7f5cf52d54 (patch) | |
| tree | 2a47b8b72b8727c940829a2f7ae87775c1a0dee6 /src/ipc.c | |
| parent | bcc6ffac9ece24f8db625c4e2a1e48fbc8258087 (diff) | |
adjust the coding style in src/ipc.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2302 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/ipc.c')
| -rw-r--r-- | src/ipc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |
