summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-05 16:10:16 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-05 16:10:16 +0000
commit2942657a566e8e5cd3b037ffe9cb961252be9fd5 (patch)
treee8c01c77a81db1878a4d87f40b684665bf6a88ed /process.c
parent99acd378d82d60d446ef12ccdaa332ef29df3243 (diff)
Unwrap a useless block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/process.c b/process.c
index 4654702..bc2a86d 100644
--- a/process.c
+++ b/process.c
@@ -3352,10 +3352,8 @@ has_privilege(void)
return 1;
}
#else
- {
- ruid = getuid();
- euid = geteuid();
- }
+ ruid = getuid();
+ euid = geteuid();
#endif
if (euid == 0 || euid != ruid)
@@ -3372,10 +3370,8 @@ has_privilege(void)
return 1;
}
#else
- {
- rgid = getgid();
- egid = getegid();
- }
+ rgid = getgid();
+ egid = getegid();
#endif
if (egid == 0 || egid != rgid)