diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-04-05 20:44:58 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-04-05 22:30:07 +0000 |
commit | 803b2c842701ca74d504b61e8d35fd801e00c614 (patch) | |
tree | 6e33646e4a716ecc08e5797a809b2a07a11211bc /mahoro.c | |
parent | ece3095074fb5cf8c09d489f311ad990a4e0076b (diff) | |
download | mahoro-803b2c842701ca74d504b61e8d35fd801e00c614.tar.gz |
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).
Diffstat (limited to 'mahoro.c')
-rw-r--r-- | mahoro.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. * |