summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-08 18:57:35 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-08 18:57:35 +0100
commitaa5a92d121d4fcc56d9661ce1c76534b410784c7 (patch)
treeef6455d89b4bf7586546c468367cfb1a0f4bac8f /src/path.c
parent519757279eb25fe4075f65b86da5ce52d352b454 (diff)
downloadlibgit2-aa5a92d121d4fcc56d9661ce1c76534b410784c7.tar.gz
OS4 compatibility
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c
index 84edf6d89..056b6b910 100644
--- a/src/path.c
+++ b/src/path.c
@@ -512,7 +512,7 @@ int git_path_direach(
de_buf = git__malloc(sizeof(struct dirent));
#endif
- while (p_readdir_r(dir, de_buf, &de) == 0 && de != NULL) {
+ while (p_readdir_r(dir, de_buf, de) == 0 && de != NULL) {
int result;
if (is_dot_or_dotdot(de->d_name))
@@ -570,7 +570,7 @@ int git_path_dirload(
path_len -= prefix_len;
need_slash = (path_len > 0 && path[path_len-1] != '/') ? 1 : 0;
- while ((error = p_readdir_r(dir, de_buf, &de)) == 0 && de != NULL) {
+ while ((error = p_readdir_r(dir, de_buf, de)) == 0 && de != NULL) {
char *entry_path;
size_t entry_len;