summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-04 05:51:57 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-04 05:51:57 +0000
commit89f49fb47794b48619d82d7b8b373ce71c9e229f (patch)
treee1f230721711574016817bdc12c67fcb511fb4fc
parentcbfa951bcdfd06c865dcde1c169aadb44fd40ade (diff)
* util.c (push_element): should return a int value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11982 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 0ef9933ecb..97d28a6791 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Mar 4 14:46:56 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * util.c (push_element): should return a int value.
+
Sun Mar 4 01:05:57 2007 Akinori MUSHA <knu@iDaemons.org>
* lib/set.rb (Set#^, Set#&): Correct documentation. Those methods
diff --git a/util.c b/util.c
index a95bddbf68..c9c7d1166d 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>