summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorjch12138 <[email protected]>2020-05-28 20:57:43 +0800
committerjch12138 <[email protected]>2020-05-28 20:57:43 +0800
commitc0a4da7c5b2b6bd6172d098734fead858d6ce58d (patch)
tree74f0d034ca2821bfc947d4363b1bcfdfadf5f198 /components
parentebfba4974cbdc95c3bc611cfc43930c762799240 (diff)
添加static前缀,防止与用户自定函数冲突
Diffstat (limited to 'components')
-rw-r--r--components/finsh/cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c
index 9743bfd18b..d764ea4231 100644
--- a/components/finsh/cmd.c
+++ b/components/finsh/cmd.c
@@ -49,7 +49,7 @@ long hello(void)
}
FINSH_FUNCTION_EXPORT(hello, say hello world);
-long clear(void)
+static long clear(void)
{
rt_kprintf("\x1b[2J\x1b[H");