summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-07-15 00:07:32 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-07-15 00:07:32 +0900
commitb4975693ed1ac46be081e02d82a6dfb7aea0e1c0 (patch)
tree388ad5ce1e6abe8e26360680366d0061d387a81a /process.c
parent80da68db1e770c877782cdf571d96fd89e7774dd (diff)
downloadruby-b4975693ed1ac46be081e02d82a6dfb7aea0e1c0.tar.gz
process.c (p_sys_setregid, p_sys_setresgid): remove unused tmp buffer
To suppress Coverity Scan warning
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/process.c b/process.c
index 530bf2673e..c732fd2cd6 100644
--- a/process.c
+++ b/process.c
@@ -6099,11 +6099,9 @@ static VALUE
p_sys_setregid(VALUE obj, VALUE rid, VALUE eid)
{
rb_gid_t rgid, egid;
- PREPARE_GETGRNAM;
check_gid_switch();
rgid = OBJ2GID(rid);
egid = OBJ2GID(eid);
- FINISH_GETGRNAM;
if (setregid(rgid, egid) != 0) rb_sys_fail(0);
return Qnil;
}
@@ -6127,12 +6125,10 @@ static VALUE
p_sys_setresgid(VALUE obj, VALUE rid, VALUE eid, VALUE sid)
{
rb_gid_t rgid, egid, sgid;
- PREPARE_GETGRNAM;
check_gid_switch();
rgid = OBJ2GID(rid);
egid = OBJ2GID(eid);
sgid = OBJ2GID(sid);
- FINISH_GETGRNAM;
if (setresgid(rgid, egid, sgid) != 0) rb_sys_fail(0);
return Qnil;
}