mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
af634f8455
commit
875f969fd9
2 changed files with 4 additions and 6 deletions
|
@ -1,4 +1,6 @@
|
|||
Thu May 14 16:07:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu May 14 16:13:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/etc/etc.c (etc_getpwuid): use rb_uid_t. [ruby-dev:38443]
|
||||
|
||||
* ext/stringio/stringio.c (strio_ungetbyte): encoding should no
|
||||
be effective.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue