Explorar o código

添加static前缀,防止与用户自定函数冲突

jch12138 %!s(int64=5) %!d(string=hai) anos
pai
achega
c0a4da7c5b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/finsh/cmd.c

+ 1 - 1
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");