summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-19 20:56:08 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-19 20:56:08 +0000
commitcfa2f95476525559bf8555c36b34dc241d87b76b (patch)
tree65bae82cfcdb763775520fd12ef0c913181b6668 /ext/fiddle
parent603cdc271042ab32461ef9d4311352496483f639 (diff)
ext/fiddle/closure.c (callback): static function
The `callback' function is not used outside of closure.c and should not be able to cause namespace conflicts in compilers without visibility pragmas. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/closure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/closure.c b/ext/fiddle/closure.c
index d857bfe..ca1b10a 100644
--- a/ext/fiddle/closure.c
+++ b/ext/fiddle/closure.c
@@ -55,7 +55,7 @@ const rb_data_type_t closure_data_type = {
{0, dealloc, closure_memsize,},
};
-void
+static void
callback(ffi_cif *cif, void *resp, void **args, void *ctx)
{
VALUE self = (VALUE)ctx;