You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by bt...@apache.org on 2020/09/16 08:07:11 UTC

[incubator-nuttx] 02/02: fs: Add static to stat_recursive

This is an automated email from the ASF dual-hosted git repository.

btashton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 6584bfa36149c0fcad177b4bff114f2dbb8fd25a
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Sep 16 02:24:01 2020 +0800

    fs: Add static to stat_recursive
    
    since it is called in one source file
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 fs/vfs/fs_stat.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/fs/vfs/fs_stat.c b/fs/vfs/fs_stat.c
index e8b9714..de62586 100644
--- a/fs/vfs/fs_stat.c
+++ b/fs/vfs/fs_stat.c
@@ -58,7 +58,8 @@
  ****************************************************************************/
 
 static inline int statroot(FAR struct stat *buf);
-int stat_recursive(FAR const char *path, FAR struct stat *buf, int resolve);
+static int stat_recursive(FAR const char *path,
+                          FAR struct stat *buf, int resolve);
 
 /****************************************************************************
  * Private Functions
@@ -93,7 +94,8 @@ static inline int statroot(FAR struct stat *buf)
  *
  ****************************************************************************/
 
-int stat_recursive(FAR const char *path, FAR struct stat *buf, int resolve)
+static int stat_recursive(FAR const char *path,
+                          FAR struct stat *buf, int resolve)
 {
   struct inode_search_s desc;
   FAR struct inode *inode;