summaryrefslogtreecommitdiff
path: root/ext/socket/ifaddr.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 20:07:23 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 20:07:23 +0000
commit10735e2d03a28234c45a3dba682f8f8f50e24722 (patch)
tree90c7a0f2afdc32abdda8a53646aa23eed0d85061 /ext/socket/ifaddr.c
parente373aed7071367491cf29d2e9c00bedd3ef115a3 (diff)
ext/socket/ifaddr.c: remove empty ifaddr_mark
We do not need to maintain empty functions for GC, gc_mark_children will not attempt to dereference NULL dmark callbacks. * ext/socket/ifaddr.c (ifaddr_mark): remove empty function (ifaddr_type): pass zero to rb_data_type_t.function.dmark git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/ifaddr.c')
-rw-r--r--ext/socket/ifaddr.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ext/socket/ifaddr.c b/ext/socket/ifaddr.c
index be2cb65..a954163 100644
--- a/ext/socket/ifaddr.c
+++ b/ext/socket/ifaddr.c
@@ -41,11 +41,6 @@ get_root(const rb_ifaddr_t *ifaddr)
}
static void
-ifaddr_mark(void *ptr)
-{
-}
-
-static void
ifaddr_free(void *ptr)
{
rb_ifaddr_t *ifaddr = ptr;
@@ -69,7 +64,7 @@ ifaddr_memsize(const void *ptr)
static const rb_data_type_t ifaddr_type = {
"socket/ifaddr",
- {ifaddr_mark, ifaddr_free, ifaddr_memsize,},
+ {0, ifaddr_free, ifaddr_memsize,},
};
static inline rb_ifaddr_t *