diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileops.c | 2 | ||||
| -rw-r--r-- | src/fileops.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c index afca0329f..ab3f43cc5 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -305,6 +305,8 @@ static int _rmdir_recurs_cb(void *GIT_UNUSED(nil), char *path) { int error = GIT_SUCCESS; + GIT_UNUSED_ARG(nil) + error = git_futils_isdir(path); if (error == GIT_SUCCESS) { size_t root_size = strlen(path); diff --git a/src/fileops.h b/src/fileops.h index a2f66a5da..cd3ff2f10 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -106,7 +106,7 @@ extern git_off_t git_futils_filesize(git_file fd); extern int git_futils_rmdir_recurs(const char *path); /* Taken from git.git */ -static inline int is_dot_or_dotdot(const char *name) +GIT_INLINE(int) is_dot_or_dotdot(const char *name) { return (name[0] == '.' && (name[1] == '\0' || |
