From a1ea7b6d5625cf3fe3dca9d0f64294211a9f644a Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 13 Sep 2002 14:46:44 +0000 Subject: * dir.c (glob_func_caller): add prototype to get rid of warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 1886877ebe..212f71329a 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; } -- cgit v1.2.3