diff options
| author | Pierre-Olivier Latour <pol@mac.com> | 2015-06-15 09:52:40 -0700 |
|---|---|---|
| committer | Pierre-Olivier Latour <pol@mac.com> | 2015-06-15 09:55:12 -0700 |
| commit | 0f4d9c03676f4226f6af705ae3ad06fcc5a82eb5 (patch) | |
| tree | 7f88a390ac9618be23afb462deb0153302b186f5 /src/path.c | |
| parent | f621f087b2cb6f124a64a57ce2e0113dc92d53bb (diff) | |
| download | libgit2-0f4d9c03676f4226f6af705ae3ad06fcc5a82eb5.tar.gz | |
Fixed Xcode 6.1 build warnings
Diffstat (limited to 'src/path.c')
| -rw-r--r-- | src/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c index aca85f992..c04b50622 100644 --- a/src/path.c +++ b/src/path.c @@ -1045,7 +1045,7 @@ int git_path_direach( #endif while ((de = readdir(dir)) != NULL) { - char *de_path = de->d_name; + const char *de_path = de->d_name; size_t de_len = strlen(de_path); if (git_path_is_dot_or_dotdot(de_path)) @@ -1305,7 +1305,7 @@ int git_path_diriter_next(git_path_diriter *diriter) #ifdef GIT_USE_ICONV if ((diriter->flags & GIT_PATH_DIR_PRECOMPOSE_UNICODE) != 0 && - (error = git_path_iconv(&diriter->ic, (char **)&filename, &filename_len)) < 0) + (error = git_path_iconv(&diriter->ic, &filename, &filename_len)) < 0) return error; #endif |
