From 803b2c842701ca74d504b61e8d35fd801e00c614 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 5 Apr 2013 20:44:58 +0000 Subject: cleanup: make cMahoro an automatic variable We do not access cMahoro outside of Init_mahoro, so it does not need to be global (rb_define_class takes care of making the Object VM-global). --- mahoro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mahoro.c b/mahoro.c index 71be82a..a30946c 100644 --- a/mahoro.c +++ b/mahoro.c @@ -17,7 +17,6 @@ # define RSTRING_PTR(s)->ptr #endif -static VALUE cMahoro; static VALUE eMahoroError; static ID id_to_path; @@ -353,6 +352,7 @@ mahoro_load(self, path) void Init_mahoro(void) { + VALUE cMahoro; /* * Mahoro is a simple interface to libmagic. * -- cgit v1.2.3-24-ge0c7