ext/kgio/accept.c in kgio-1.2.0 vs ext/kgio/accept.c in kgio-1.2.1
- old
+ new
@@ -281,11 +281,11 @@
/*
* call-seq:
*
* Kgio.accept_cloexec = true
- * Kgio.accept_clocexec = false
+ * Kgio.accept_cloexec = false
*
* Sets whether or not Kgio::Socket objects created by
* TCPServer#kgio_accept,
* TCPServer#kgio_tryaccept,
* UNIXServer#kgio_accept,
@@ -339,12 +339,13 @@
}
rb_raise(rb_eTypeError, "not true or false");
return Qnil;
}
-void init_kgio_accept(VALUE mKgio)
+void init_kgio_accept(void)
{
VALUE cUNIXServer, cTCPServer;
+ VALUE mKgio = rb_define_module("Kgio");
localhost = rb_const_get(mKgio, rb_intern("LOCALHOST"));
cKgio_Socket = rb_const_get(mKgio, rb_intern("Socket"));
cClientSocket = cKgio_Socket;
mSocketMethods = rb_const_get(mKgio, rb_intern("SocketMethods"));