mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 04:04:15 +08:00
decrease memory usage
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@768 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -26,7 +26,7 @@ void sys_init(void)
|
||||
|
||||
sys_sem_t sys_sem_new(u8_t count)
|
||||
{
|
||||
static int counter = 0;
|
||||
static unsigned short counter = 0;
|
||||
char tname[RT_NAME_MAX];
|
||||
|
||||
rt_snprintf(tname, RT_NAME_MAX, "%s%d", SYS_LWIP_SEM_NAME, counter);
|
||||
@@ -123,7 +123,7 @@ u32_t sys_arch_sem_wait(sys_sem_t sem, u32_t timeout)
|
||||
|
||||
sys_mbox_t sys_mbox_new(int size)
|
||||
{
|
||||
static int counter = 0;
|
||||
static unsigned short counter = 0;
|
||||
char tname[RT_NAME_MAX];
|
||||
|
||||
rt_snprintf(tname, RT_NAME_MAX, "%s%d", SYS_LWIP_MBOX_NAME, counter);
|
||||
|
||||
Reference in New Issue
Block a user