summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-14 18:57:24 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-14 18:57:24 +0100
commita8df98c6fb07b8ddff18a01d7f2f607d9493dd7c (patch)
tree508aa2bdd6278e967ce4122c37a6a7d9a77bdad5 /src/path.c
parenta21bb1aa33e9887c06852db62526895df6091736 (diff)
downloadlibgit2-a8df98c6fb07b8ddff18a01d7f2f607d9493dd7c.tar.gz
Updates from comments on OS4 compatibility pull request http://github.com/libgit2/libgit2/pull/766
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/path.c b/src/path.c
index d48435bd8..bd659f815 100644
--- a/src/path.c
+++ b/src/path.c
@@ -486,14 +486,9 @@ int git_path_cmp(
/* Taken from git.git */
GIT_INLINE(int) is_dot_or_dotdot(const char *name)
{
-#ifdef __amigaos4__
- /* This is irrelevant on AmigaOS */
- return 0;
-#else
return (name[0] == '.' &&
(name[1] == '\0' ||
(name[1] == '.' && name[2] == '\0')));
-#endif
}
int git_path_direach(
@@ -521,11 +516,7 @@ int git_path_direach(
de_buf = git__malloc(sizeof(struct dirent));
#endif
-#ifdef NO_READDIR_R
- while (de = readdir(dir)) {
-#else
while (p_readdir_r(dir, de_buf, de) == 0 && de != NULL) {
-#endif
int result;
if (is_dot_or_dotdot(de->d_name))