summaryrefslogtreecommitdiff
path: root/ext/etc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-08 03:08:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-08 03:08:53 +0000
commit5512c9b28716df7681680e0db598f3263ad3fe44 (patch)
tree008c98af006f3a9cd426251accf0e4ed42dd286b /ext/etc
parent66abf4ad68609d70d7a1ebe14c519c150b5957ef (diff)
* ext/etc/etc.c: suppressed warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/etc')
-rw-r--r--ext/etc/etc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index e538aa3..79462f7 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -166,7 +166,7 @@ static int passwd_blocking = 0;
static VALUE
passwd_ensure(void)
{
- passwd_blocking = Qfalse;
+ passwd_blocking = (int)Qfalse;
return Qnil;
}
@@ -189,7 +189,7 @@ each_passwd(void)
if (passwd_blocking) {
rb_raise(rb_eRuntimeError, "parallel passwd iteration");
}
- passwd_blocking = Qtrue;
+ passwd_blocking = (int)Qtrue;
rb_ensure(passwd_iterate, 0, passwd_ensure, 0);
}
#endif
@@ -404,7 +404,7 @@ static int group_blocking = 0;
static VALUE
group_ensure(void)
{
- group_blocking = Qfalse;
+ group_blocking = (int)Qfalse;
return Qnil;
}
@@ -427,7 +427,7 @@ each_group(void)
if (group_blocking) {
rb_raise(rb_eRuntimeError, "parallel group iteration");
}
- group_blocking = Qtrue;
+ group_blocking = (int)Qtrue;
rb_ensure(group_iterate, 0, group_ensure, 0);
}
#endif