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-06-16 07:41:48 +0000
committerEric Wong <normalperson@yhbt.net>2011-06-16 07:41:48 +0000
commit3ae56d273aaa871a328ab5275f5700fa396dad03 (patch)
tree13ee11ca6d05dd825887977c6386e00f80c15c9e /ext/posix_mq/posix_mq.c
parentb5bee9559dadcbe6a5669faac98d3201954c0606 (diff)
downloadruby_posix_mq-3ae56d273aaa871a328ab5275f5700fa396dad03.tar.gz
CFLAGS=-Wall somehow got disabled in my Ruby installation...
Diffstat (limited to 'ext/posix_mq/posix_mq.c')
-rw-r--r--ext/posix_mq/posix_mq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c
index 75b38e4..2958352 100644
--- a/ext/posix_mq/posix_mq.c
+++ b/ext/posix_mq/posix_mq.c
@@ -703,7 +703,6 @@ static VALUE _receive(int rflags, int argc, VALUE *argv, VALUE self)
 static VALUE getattr(VALUE self)
 {
         struct posix_mq *mq = get(self, 1);
-        VALUE astruct;
 
         if (mq_getattr(mq->des, &mq->attr) < 0)
                 rb_sys_fail("mq_getattr");
@@ -1000,7 +999,7 @@ static VALUE setnonblock(VALUE self, VALUE nb)
  */
 static VALUE trysend(int argc, VALUE *argv, VALUE self)
 {
-        _send(PMQ_TRY, argc, argv, self);
+        return _send(PMQ_TRY, argc, argv, self);
 }
 
 /*