summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-04 14:20:24 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-04 14:20:24 +0000
commit93e88acdc67c8ace88f8dc7d0eb8a0c98cf3c172 (patch)
tree9c324ffe98afdc016d344ce90223f0667969d3dd
parent13cf716c5250ed3b427cf25d67d7fca5458d9157 (diff)
downloadruby-93e88acdc67c8ace88f8dc7d0eb8a0c98cf3c172.tar.gz
ruby-93e88acdc67c8ace88f8dc7d0eb8a0c98cf3c172.tar.xz
ruby-93e88acdc67c8ace88f8dc7d0eb8a0c98cf3c172.zip
* util.c (push_element): should return a int value.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@11983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--util.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a0bd761f..673fe3572 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Mar 4 23:19:00 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * util.c (push_element): should return a int value.
+
Sun Mar 4 01:06:55 2007 Akinori MUSHA <knu@iDaemons.org>
* lib/set.rb (Set#^, Set#&): Correct documentation. Those methods
diff --git a/util.c b/util.c
index a95bddbf6..c9c7d1166 100644
--- a/util.c
+++ b/util.c
@@ -316,7 +316,7 @@ struct PathInfo {
int count;
};
-static void
+static int
push_element(const char *path, VALUE vinfo)
{
struct PathList *p;
@@ -328,6 +328,8 @@ push_element(const char *path, VALUE vinfo)
p->next = info->head;
info->head = p;
info->count++;
+
+ return 0;
}
#include <dirent.h>