summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-09-18 03:47:03 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-09-18 03:47:03 +0000
commitf7fe97723a970cc1bfc14e9676a299c6099ae2e3 (patch)
treea30b52fe586e8cd40f984736cee90e3533a209f5 /file.c
parentb12951c688e541308bd3869470cd751c159091c3 (diff)
small last minute changes (eval.c, file.c)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/file.c b/file.c
index 5f93462a8d..de8c609115 100644
--- a/file.c
+++ b/file.c
@@ -76,7 +76,7 @@ static VALUE rb_cStat;
static int
apply2files(func, vargs, arg)
- int (*func)();
+ void (*func)();
VALUE vargs;
void *arg;
{
@@ -90,8 +90,7 @@ apply2files(func, vargs, arg)
for (i=0; i<args->len; i++) {
path = args->ptr[i];
- if ((*func)(RSTRING(path)->ptr, arg) < 0)
- rb_sys_fail(RSTRING(path)->ptr);
+ (*func)(RSTRING(path)->ptr, arg);
}
return args->len;