about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorHleb Valoshka <375gnu@gmail.com>2012-07-03 23:13:48 +0300
committerEric Wong <normalperson@yhbt.net>2012-07-03 17:16:21 -0700
commit5e49637bdc37eb11b9d30863e8ba07a29e2948fe (patch)
tree4af2d7c0d41c6414eeef23aa89450b02b3a00492
parent3ae56d273aaa871a328ab5275f5700fa396dad03 (diff)
downloadruby_posix_mq-5e49637bdc37eb11b9d30863e8ba07a29e2948fe.tar.gz
The 3rd argument of DL::Function.new is ABI type, not a return type.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
-rw-r--r--test/test_posix_mq.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_posix_mq.rb b/test/test_posix_mq.rb
index d48238c..5c7cc11 100644
--- a/test/test_posix_mq.rb
+++ b/test/test_posix_mq.rb
@@ -110,7 +110,7 @@ class Test_POSIX_MQ < Test::Unit::TestCase
       if defined?(DL::Function)
         alarm = libc["alarm"]
         alarm = DL::CFunc.new(alarm, DL::TYPE_INT, "alarm")
-        alarm = DL::Function.new(alarm, [DL::TYPE_INT], DL::TYPE_INT)
+        alarm = DL::Function.new(alarm, [DL::TYPE_INT])
       else
         alarm = libc["alarm", "II"]
       end