diff options
author | Eric Wong <e@yhbt.net> | 2011-02-06 08:06:41 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-06 08:51:00 +0000 |
commit | 6d8fbb4321a2ff64323ce6810410be8e2a412d5c (patch) | |
tree | e3d9a439fd4396280231b31e49c84c3c9e866c81 | |
parent | 415296ba1d398983a0ea047134b8ee7d58ac93bc (diff) | |
download | mall-6d8fbb4321a2ff64323ce6810410be8e2a412d5c.tar.gz |
unnecessary global variable
No need for that!
-rw-r--r-- | ext/mall/mall.c.erb | 4 |
1 files changed, 1 insertions, 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 <ruby.h> #include <malloc.h> -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 |