summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--file.c12
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 846d40372a..3185dee302 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Oct 17 16:04:47 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (chmod_internal, lchmod_internal): fixed type of 2nd argument.
+
Sun Oct 16 22:16:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb: omit non-existing directories.
diff --git a/file.c b/file.c
index 44291935a3..d812d7fedc 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);
}