summaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-17 18:20:57 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-17 18:20:57 +0000
commit21ef381f823c77c064cfc47858cca546efa93e44 (patch)
tree3e3587dcfd1ff3bea437081c5e2942a1bb74ca04 /dir.c
parentf43e273a71d17d7fe48ae145436db1132de412c5 (diff)
downloadruby-21ef381f823c77c064cfc47858cca546efa93e44.tar.gz
ruby-21ef381f823c77c064cfc47858cca546efa93e44.tar.xz
ruby-21ef381f823c77c064cfc47858cca546efa93e44.zip
* dir.c (bracket): use NULL instead of 0.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dir.c b/dir.c
index fbf022e0e..854ab12c0 100644
--- a/dir.c
+++ b/dir.c
@@ -185,14 +185,14 @@ bracket(p, s, flags)
if (escape && *t1 == '\\')
t1++;
if (!*t1)
- return 0;
+ return NULL;
p = Next(t1);
if (p[0] == '-' && p[1] != ']') {
const char *t2 = p + 1;
if (escape && *t2 == '\\')
t2++;
if (!*t2)
- return 0;
+ return NULL;
p = Next(t2);
if (!ok && Compare(t1, s) <= 0 && Compare(s, t2) <= 0)
ok = 1;
@@ -202,7 +202,7 @@ bracket(p, s, flags)
ok = 1;
}
- return ok == not ? 0 : (char *)p + 1;
+ return ok == not ? NULL : (char *)p + 1;
}
/* If FNM_PATHNAME is set, only path element will be matched. (upto '/' or '\0')