summaryrefslogtreecommitdiffstats
path: root/ext/dl/sample
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-09 17:47:34 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-09 17:47:34 +0000
commit6ff6e8758d4125174a19b49029dc9499f0c6b8dc (patch)
tree2b087bbd1f6160b6c4b4fb787bc32f96fb889873 /ext/dl/sample
parent717dfa48d53a58f9574755de3d4b997e4dd6c828 (diff)
downloadruby-6ff6e8758d4125174a19b49029dc9499f0c6b8dc.tar.gz
ruby-6ff6e8758d4125174a19b49029dc9499f0c6b8dc.tar.xz
ruby-6ff6e8758d4125174a19b49029dc9499f0c6b8dc.zip
* ext/dl: change the callback mechanism.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/sample')
-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 7d1de2601..9975828be 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