Commit b74884b86 ("untracked cache: make a wrapper around
{open,read,close}dir()", 27-10-2014) added the read_cached_dir()
function as an external symbol.

Noticed by sparse. ("'read_cached_dir' was not declared. Should it
be static?").

Signed-off-by: Ramsay Jones <ram...@ramsay1.demon.co.uk>
---

Hi Duy,

If you need to re-roll your 'nd/untracked-cache' branch, could you
please squash this into the relevant patch.

Thanks!

[If this function is destined to be used from external call sites
in future patches, then adding an extern declaration to "dir.h"
would be an alternative, of course. ;-) ]

ATB,
Ramsay Jones


 dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dir.c b/dir.c
index 0040ca1..e999cc8 100644
--- a/dir.c
+++ b/dir.c
@@ -1582,7 +1582,7 @@ static int open_cached_dir(struct cached_dir *cdir,
        return 0;
 }
 
-int read_cached_dir(struct cached_dir *cdir)
+static int read_cached_dir(struct cached_dir *cdir)
 {
        if (cdir->fdir) {
                cdir->de = readdir(cdir->fdir);
-- 
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to