aboutsummaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dir.c b/dir.c
index d9c77dceb7..9f425cc933 100644
--- a/dir.c
+++ b/dir.c
@@ -896,7 +896,7 @@ do_stat(const char *path, struct stat *pst)
{
int ret = stat(path, pst);
if (ret < 0 && errno != ENOENT)
- rb_protect((VALUE (*)_((VALUE)))rb_sys_warning, (VALUE)path, 0);
+ rb_protect((VALUE (*)(VALUE))rb_sys_warning, (VALUE)path, 0);
return ret;
}
@@ -906,7 +906,7 @@ do_lstat(const char *path, struct stat *pst)
{
int ret = lstat(path, pst);
if (ret < 0 && errno != ENOENT)
- rb_protect((VALUE (*)_((VALUE)))rb_sys_warning, (VALUE)path, 0);
+ rb_protect((VALUE (*)(VALUE))rb_sys_warning, (VALUE)path, 0);
return ret;
}
@@ -916,7 +916,7 @@ do_opendir(const char *path)
{
DIR *dirp = opendir(path);
if (dirp == NULL && errno != ENOENT && errno != ENOTDIR)
- rb_protect((VALUE (*)_((VALUE)))rb_sys_warning, (VALUE)path, 0);
+ rb_protect((VALUE (*)(VALUE))rb_sys_warning, (VALUE)path, 0);
return dirp;
}