summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2009-09-29 14:19:24 +0000
committerbernard.xiong <[email protected]>2009-09-29 14:19:24 +0000
commit4a5ee340374ad1d1b048eff54598cc8d0469ed21 (patch)
treeee12d6dbabf38b34fb4aa1c4b010b79daeecfff2
parenta386f191a9b1e96c188527f310241b4ab36e3189 (diff)
add str_is_prefix function with static attribute
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@58 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--finsh/cmd.c2
1 files changed, 1 insertions, 1 deletions
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))
{