summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 3 insertions, 1 deletions
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>