From 4a5ee340374ad1d1b048eff54598cc8d0469ed21 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Tue, 29 Sep 2009 14:19:24 +0000 Subject: [PATCH] add str_is_prefix function with static attribute git-svn-id: https://rt-thread.googlecode.com/svn/trunk@58 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- finsh/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finsh/cmd.c b/finsh/cmd.c index f790394160..c6ea09ad00 100644 --- a/finsh/cmd.c +++ b/finsh/cmd.c @@ -369,7 +369,7 @@ int list() } FINSH_FUNCTION_EXPORT(list, list all symbol in system) -int str_is_prefix(const char* prefix, const char* str) +static int str_is_prefix(const char* prefix, const char* str) { while ((*prefix) && (*prefix == *str)) { -- GitLab