about summary refs log tree commit homepage
path: root/ext/posix_mq/posix_mq.c
diff options
context:
space:
mode:
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);
 }
 
 /*