aboutsummaryrefslogtreecommitdiffstats
path: root/ext/dl/sample/libc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/sample/libc.rb')
-rw-r--r--ext/dl/sample/libc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/sample/libc.rb b/ext/dl/sample/libc.rb
index 7d1de2601d..9975828be3 100644
--- a/ext/dl/sample/libc.rb
+++ b/ext/dl/sample/libc.rb
@@ -38,7 +38,7 @@ module LIBC
end
-$cb1 = DL.set_callback('IPP', 0){|ptr1, ptr2|
+$cb1 = DL.callback('IPP'){|ptr1, ptr2|
str1 = ptr1.ptr.to_s
str2 = ptr2.ptr.to_s
str1 <=> str2