summaryrefslogtreecommitdiff
path: root/components/libc/libdl/dlmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/libc/libdl/dlmodule.c')
-rw-r--r--components/libc/libdl/dlmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/libc/libdl/dlmodule.c b/components/libc/libdl/dlmodule.c
index 21e070a106..5387bc4c0f 100644
--- a/components/libc/libdl/dlmodule.c
+++ b/components/libc/libdl/dlmodule.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -547,7 +547,7 @@ struct rt_dlmodule* dlmodule_exec(const char* pgname, const char* cmd, int cmd_s
if (module->priority > RT_THREAD_PRIORITY_MAX) module->priority = RT_THREAD_PRIORITY_MAX - 1;
if (module->stack_size < 2048 || module->stack_size > (1024 * 32)) module->stack_size = 2048;
- tid = rt_thread_create(module->parent.name, _dlmodule_thread_entry, (void*)module,
+ tid = rt_thread_create(module->parent.name, _dlmodule_thread_entry, (void*)module,
module->stack_size, module->priority, 10);
if (tid)
{
@@ -580,7 +580,7 @@ void dlmodule_exit(int ret_code)
rt_enter_critical();
/* module is not running */
- if (module->stat != RT_DLMODULE_STAT_RUNNING)
+ if (module->stat != RT_DLMODULE_STAT_RUNNING)
{
/* restore scheduling */
rt_exit_critical();