summaryrefslogtreecommitdiff
path: root/src/path.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-06-15 13:28:08 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-15 13:43:48 +0200
commit25bd0aaf20463fd9d00d882d39cb1cfec4aa6917 (patch)
tree14b772556825babc21b153d7fb93dce1e2cabea8 /src/path.h
parent2665fefa0f3af60c04b747e2f06c0d4ca6ea75f7 (diff)
downloadlibgit2-cmn/readdir.tar.gz
path: remove unnecessary readdir_r usagecmn/readdir
Arguably all uses of readdir_r are unnecessary, but in this case especially so, as the directory handle only exists within this function, so we don't race with anybody.
Diffstat (limited to 'src/path.h')
-rw-r--r--src/path.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.h b/src/path.h
index 14237cb46..5927a5381 100644
--- a/src/path.h
+++ b/src/path.h
@@ -407,7 +407,7 @@ extern void git_path_iconv_clear(git_path_iconv_t *ic);
* pointer internal iconv buffer if rewrite happened. The `in` pointer
* will be left unchanged if no rewrite was needed.
*/
-extern int git_path_iconv(git_path_iconv_t *ic, char **in, size_t *inlen);
+extern int git_path_iconv(git_path_iconv_t *ic, const char **in, size_t *inlen);
#endif /* GIT_USE_ICONV */