about summary refs log tree commit homepage
path: root/ext/posix_mq/posix_mq.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-27 10:19:13 +0000
committerEric Wong <normalperson@yhbt.net>2011-02-27 11:02:45 +0000
commitfe77abb7dc4dbe6fb4054430ff7fceb98f5dc9b8 (patch)
tree8b65f443db3cf76a4ef66ba1f25d2824474eb4e5 /ext/posix_mq/posix_mq.c
parent8595f845b3903907adaa614443a582179e5da22a (diff)
downloadruby_posix_mq-fe77abb7dc4dbe6fb4054430ff7fceb98f5dc9b8.tar.gz
It can be local variable
Diffstat (limited to 'ext/posix_mq/posix_mq.c')
-rw-r--r--ext/posix_mq/posix_mq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c
index 05f407d..3f40185 100644
--- a/ext/posix_mq/posix_mq.c
+++ b/ext/posix_mq/posix_mq.c
@@ -62,7 +62,7 @@ static int MQ_IO_CLOSE(struct posix_mq *mq)
 }
 #endif
 
-static VALUE cPOSIX_MQ, cAttr;
+static VALUE cAttr;
 static ID id_new, id_kill, id_fileno, id_mul, id_divmod;
 static ID id_flags, id_maxmsg, id_msgsize, id_curmsgs;
 static VALUE sym_r, sym_w, sym_rw;
@@ -970,7 +970,7 @@ static VALUE setnonblock(VALUE self, VALUE nb)
 
 void Init_posix_mq_ext(void)
 {
-        cPOSIX_MQ = rb_define_class("POSIX_MQ", rb_cObject);
+        VALUE cPOSIX_MQ = rb_define_class("POSIX_MQ", rb_cObject);
         rb_define_alloc_func(cPOSIX_MQ, alloc);
         cAttr = rb_const_get(cPOSIX_MQ, rb_intern("Attr"));