summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--util.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 71e8efa654..37a10d38a9 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:01:25 2007 Akinori MUSHA <knu@iDaemons.org>
* lib/set.rb (Set#^, Set#&): Correct documentation. Those methods
diff --git a/util.c b/util.c
index c949a98e6e..ab6d7b8814 100644
--- a/util.c
+++ b/util.c
@@ -305,7 +305,7 @@ struct PathInfo {
int count;
};
-static void
+static int
push_element(const char *path, VALUE vinfo)
{
struct PathList *p;
@@ -317,6 +317,8 @@ push_element(const char *path, VALUE vinfo)
p->next = info->head;
info->head = p;
info->count++;
+
+ return 0;
}
#include <dirent.h>