about summary refs log tree commit homepage
path: root/ext/posix_mq/posix_mq.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-23 19:43:38 +0000
committerEric Wong <normalperson@yhbt.net>2011-02-23 19:43:38 +0000
commit72171f4ba79e5cbb6eb82f0f243cf554f643e796 (patch)
tree9a57bfdac6a9aaa094ebcd87cc41e861781789d7 /ext/posix_mq/posix_mq.c
parent07feaee646e061f27dceccc1c06262c2e832f560 (diff)
downloadruby_posix_mq-72171f4ba79e5cbb6eb82f0f243cf554f643e796.tar.gz
These cannot be cast to void since its value is
meaningful.
Diffstat (limited to 'ext/posix_mq/posix_mq.c')
-rw-r--r--ext/posix_mq/posix_mq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c
index d59cd30..3340b00 100644
--- a/ext/posix_mq/posix_mq.c
+++ b/ext/posix_mq/posix_mq.c
@@ -31,8 +31,8 @@
 #else
 #  define MQ_IO_MARK(mq) ((void)(0))
 #  define MQ_IO_SET(mq,val) ((void)(0))
-#  define MQ_IO_CLOSE(mq) ((void)(0))
-#  define MQ_IO_NIL_P(mq) ((void)(1))
+#  define MQ_IO_CLOSE(mq) ((int)(0))
+#  define MQ_IO_NIL_P(mq) ((int)(1))
 #endif
 
 struct posix_mq {