summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-04 14:41:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-04 14:41:16 +0000
commit7b0f24634555aece61327c117e8d56d27310b281 (patch)
treee50e92ad972ab6b9f6f424eea7d2ea1ca9a2b37d /file.c
parent9b7ecc68a9e869143367556dba35f7368839ab32 (diff)
* file.c (rb_stat_uid, rb_stat_gid, eaccess): use rb_uid_t and
rb_gid_t instead of int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/file.c b/file.c
index 57c7adaa5c..9ef9ad7223 100644
--- a/file.c
+++ b/file.c
@@ -351,7 +351,7 @@ rb_stat_nlink(VALUE self)
static VALUE
rb_stat_uid(VALUE self)
{
- return UINT2NUM(get_stat(self)->st_uid);
+ return UIDT2NUM(get_stat(self)->st_uid);
}
/*
@@ -367,7 +367,7 @@ rb_stat_uid(VALUE self)
static VALUE
rb_stat_gid(VALUE self)
{
- return UINT2NUM(get_stat(self)->st_gid);
+ return GIDT2NUM(get_stat(self)->st_gid);
}
@@ -828,7 +828,7 @@ eaccess(const char *path, int mode)
{
#ifdef USE_GETEUID
struct stat st;
- int euid;
+ rb_uid_t euid;
if (stat(path, &st) < 0) return -1;