summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-17 07:06:53 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-17 07:06:53 +0000
commit048443c1c827a52aaa8dd9537245b42a1cba20f6 (patch)
tree8133f5da420ef1f9fc7053d765046609fd6bcaa1 /file.c
parent8ea5c33bd673b03a39cfdf090c5ad9fb6a2979d9 (diff)
* file.c (chmod_internal, lchmod_internal): fixed type of 2nd argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/file.c b/file.c
index 4429193..d812d7f 100644
--- a/file.c
+++ b/file.c
@@ -1689,11 +1689,13 @@ struct chown_args {
int owner, group;
};
+static void chown_internal _((const char *, void *));
static void
-chown_internal(path, args)
+chown_internal(path, argp)
const char *path;
- struct chown_args *args;
+ void *argp;
{
+ struct chown_args *args = (struct chown_args *)argp;
if (chown(path, args->owner, args->group) < 0)
rb_sys_fail(path);
}
@@ -1780,11 +1782,13 @@ rb_file_chown(obj, owner, group)
}
#if defined(HAVE_LCHOWN) && !defined(__CHECKER__)
+static void lchown_internal _((const char *, void *));
static void
-lchown_internal(path, args)
+lchown_internal(path, argp)
const char *path;
- struct chown_args *args;
+ void *argp;
{
+ struct chown_args *args = (struct chown_args *)argp;
if (lchown(path, args->owner, args->group) < 0)
rb_sys_fail(path);
}