summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index 1886877ebeb..212f71329ac 100644
--- a/dir.c
+++ b/dir.c
@@ -659,10 +659,13 @@ struct glob_args {
VALUE v;
};
+static VALUE glob_func_caller _((VALUE));
+
static VALUE
-glob_func_caller(args)
- struct glob_args *args;
+glob_func_caller(val)
+ VALUE val;
{
+ struct glob_args *args = (struct glob_args *)val;
(*args->func)(args->c, args->v);
return Qnil;
}