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

ruby-changes:35338

From: akr <ko1@a...>
Date: Sat, 6 Sep 2014 01:10:24 +0900 (JST)
Subject: [ruby-changes:35338] akr:r47420 (trunk): Unwrap a useless block.

akr	2014-09-06 01:10:16 +0900 (Sat, 06 Sep 2014)

  New Revision: 47420

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

  Log:
    Unwrap a useless block.

  Modified files:
    trunk/process.c
Index: process.c
===================================================================
--- process.c	(revision 47419)
+++ process.c	(revision 47420)
@@ -3352,10 +3352,8 @@ has_privilege(void) https://github.com/ruby/ruby/blob/trunk/process.c#L3352
             return 1;
     }
 #else
-    {
-        ruid = getuid();
-        euid = geteuid();
-    }
+    ruid = getuid();
+    euid = geteuid();
 #endif
 
     if (euid == 0 || euid != ruid)
@@ -3372,10 +3370,8 @@ has_privilege(void) https://github.com/ruby/ruby/blob/trunk/process.c#L3370
             return 1;
     }
 #else
-    {
-        rgid = getgid();
-        egid = getegid();
-    }
+    rgid = getgid();
+    egid = getegid();
 #endif
 
     if (egid == 0 || egid != rgid)

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

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