From 6d8fbb4321a2ff64323ce6810410be8e2a412d5c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 6 Feb 2011 08:06:41 +0000 Subject: unnecessary global variable No need for that! --- ext/mall/mall.c.erb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/mall/mall.c.erb b/ext/mall/mall.c.erb index 1e15662..be46163 100644 --- a/ext/mall/mall.c.erb +++ b/ext/mall/mall.c.erb @@ -1,8 +1,6 @@ #include #include -static VALUE mMall; - /* * struct mallinfo { * int arena; // non-mmapped space allocated from system @@ -138,7 +136,7 @@ static VALUE xml(int argc, VALUE *argv, VALUE self) void Init_mall(void) { - mMall = rb_define_module("Mall"); + VALUE mMall = rb_define_module("Mall"); rb_define_singleton_method(mMall, "opt", opt, 2); rb_define_singleton_method(mMall, "info", info, 0); #ifdef HAVE_MALLOC_TRIM -- cgit v1.2.3-24-ge0c7