summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-05 01:44:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-05 01:44:20 +0000
commit65a61792a96f478cbf8ff90b8a09b8b555f4d5c1 (patch)
tree108b872cb6c38af6d4dd00eccc59d62bf6aac95a /dir.c
parent0dc94b8b3e6c9440c05f18387c7dc8207094d89a (diff)
dir.c: enumm answer
* dir.c (enumm answer): remap NO and YES to false and true, respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 8026fb7f19..c7ffef269a 100644
--- a/dir.c
+++ b/dir.c
@@ -1260,7 +1260,7 @@ join_path(const char *path, int dirsep, const char *name)
return buf;
}
-enum answer { YES, NO, UNKNOWN };
+enum answer {UNKNOWN = -1, NO, YES};
#ifndef S_ISDIR
# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)