summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-15 07:35:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-15 07:35:14 +0000
commit9ef8a2a5db011a0071a4232b368b1cc4d2346351 (patch)
tree566ed5a268701be4d60000769972440d4b6c553c /process.c
parentbdfce148a7f85a14e24c6365e72ba59241c4be9f (diff)
* lib/matrix.rb: remove elements conversion to_f, to_i, to_r.
* lib/cgi/session/pstore.rb: add new file. * process.c (proc_getgroups, proc_setmaxgroups): fix typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/process.c b/process.c
index 6c06c2b..141c187 100644
--- a/process.c
+++ b/process.c
@@ -1231,13 +1231,13 @@ proc_getgroups(VALUE obj)
{
#ifdef HAVE_GETGROUPS
VALUE ary;
- size_t ngroups = 32;
+ size_t ngroups;
gid_t *groups;
int i;
groups = ALLOCA_N(gid_t, maxgroups);
- ngroups = getgroups(ngroups, groups);
+ ngroups = getgroups(maxgroups, groups);
if (ngroups == -1)
rb_sys_fail(0);
@@ -1312,7 +1312,7 @@ static VALUE
proc_setmaxgroups(obj, val)
VALUE obj;
{
- size_t ngroups = INT2FIX(val);
+ size_t ngroups = FIX2INT(val);
if (ngroups > 4096)
ngroups = 4096;