提交 bf08f4d7 编写于 作者: B bernard.xiong

decrease memory usage

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@768 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 59b014b6
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册