summaryrefslogtreecommitdiff
path: root/ext/etc/etc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-14 07:13:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-14 07:13:40 +0000
commit875f969fd91ad537b3aa8d248ba2c2fe4d86bd6e (patch)
treefce664a6e3cfc814411d82d1f4e341da09f0f16b /ext/etc/etc.c
parentaf634f8455ecb48209637bf8c748dad7136b9c9f (diff)
* ext/etc/etc.c (etc_getpwuid): use rb_uid_t. [ruby-dev:38443]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/etc/etc.c')
-rw-r--r--ext/etc/etc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index 0705606..c8e52da 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -22,10 +22,6 @@
#include <grp.h>
#endif
-#ifndef HAVE_TYPE_UID_T
-#define uid_t int
-#endif
-
static VALUE sPasswd;
#ifdef HAVE_GETGRENT
static VALUE sGroup;
@@ -124,7 +120,7 @@ etc_getpwuid(int argc, VALUE *argv, VALUE obj)
{
#if defined(HAVE_GETPWENT)
VALUE id;
- uid_t uid;
+ rb_uid_t uid;
struct passwd *pwd;
rb_secure(4);