[前][次][番号順一覧][スレッド一覧]

ruby-changes:35314

From: akr <ko1@a...>
Date: Fri, 5 Sep 2014 12:29:02 +0900 (JST)
Subject: [ruby-changes:35314] akr:r47396 (trunk): * process.c (has_privilege): Fix assignements.

akr	2014-09-05 12:28:53 +0900 (Fri, 05 Sep 2014)

  New Revision: 47396

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47396

  Log:
    * process.c (has_privilege): Fix assignements.

  Modified files:
    trunk/ChangeLog
    trunk/process.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47395)
+++ ChangeLog	(revision 47396)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Sep  5 12:28:21 2014  Tanaka Akira  <akr@f...>
+
+	* process.c (has_privilege): Fix assignements.
+
 Fri Sep  5 11:10:13 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* lib/rdoc/generator/pot/po.rb: fixed broken tests for trailing whitespace.
Index: process.c
===================================================================
--- process.c	(revision 47395)
+++ process.c	(revision 47396)
@@ -3312,8 +3312,8 @@ has_privilege(void) https://github.com/ruby/ruby/blob/trunk/process.c#L3312
     }
 #else
     {
-        rb_uid_t ruid = getuid();
-        rb_uid_t euid = geteuid();
+        ruid = getuid();
+        euid = geteuid();
     }
 #endif
 
@@ -3332,8 +3332,8 @@ has_privilege(void) https://github.com/ruby/ruby/blob/trunk/process.c#L3332
     }
 #else
     {
-        rb_gid_t rgid = getgid();
-        rb_gid_t egid = getegid();
+        rgid = getgid();
+        egid = getegid();
     }
 #endif
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]