dir.c: mark a file local function as static
PATCH 1/1 dir.c: mark a file local function as static
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 <[email protected]>
---
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(-)
dir.c +1 -1
@@ -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);
Signature · 1 line
2.1.0