about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-15 22:16:15 -0700
committerEric Wong <normalperson@yhbt.net>2011-06-15 22:23:50 -0700
commit079f9227dce2e69bd3460c783e12fa05c687b7d3 (patch)
tree69aa7ec84cf58ff21683995ead7b2a54c4687c4c
parent8fe21f6758bb877efacce1fa6573e72625252585 (diff)
downloadkgio-079f9227dce2e69bd3460c783e12fa05c687b7d3.tar.gz
Some installations of Ruby clobbered my usual CFLAGS=-Wall
-rw-r--r--ext/kgio/accept.c2
-rw-r--r--ext/kgio/autopush.c5
-rw-r--r--ext/kgio/connect.c1
-rw-r--r--ext/kgio/kgio.h2
-rw-r--r--ext/kgio/poll.c1
-rw-r--r--ext/kgio/read_write.c2
-rw-r--r--ext/kgio/wait.c1
7 files changed, 7 insertions, 7 deletions
diff --git a/ext/kgio/accept.c b/ext/kgio/accept.c
index a5edca9..98d7707 100644
--- a/ext/kgio/accept.c
+++ b/ext/kgio/accept.c
@@ -1,6 +1,8 @@
 #include "kgio.h"
 #include "missing_accept4.h"
 #include "sock_for_fd.h"
+#include "my_fileno.h"
+#include "nonblock.h"
 
 static VALUE localhost;
 static VALUE cClientSocket;
diff --git a/ext/kgio/autopush.c b/ext/kgio/autopush.c
index 252ecdd..7c5553f 100644
--- a/ext/kgio/autopush.c
+++ b/ext/kgio/autopush.c
@@ -13,6 +13,7 @@
  */
 
 #include "kgio.h"
+#include "my_fileno.h"
 #include <netinet/tcp.h>
 
 /*
@@ -142,10 +143,6 @@ static VALUE autopush_get(VALUE io)
  */
 static VALUE autopush_set(VALUE io, VALUE vbool)
 {
-        int fd = my_fileno(io);
-        int val;
-        socklen_t len = sizeof(val);
-
         if (RTEST(vbool))
                 state_set(io, AUTOPUSH_STATE_WRITER);
         else
diff --git a/ext/kgio/connect.c b/ext/kgio/connect.c
index bb1f527..c16556e 100644
--- a/ext/kgio/connect.c
+++ b/ext/kgio/connect.c
@@ -61,7 +61,6 @@ static VALUE tcp_connect(VALUE klass, VALUE ip, VALUE port, int io_wait)
         struct sockaddr_storage addr;
         int rc;
         struct addrinfo *res;
-        VALUE sock;
         const char *ipname = StringValuePtr(ip);
         char ipport[6];
         unsigned uport = FIX2UINT(port);
diff --git a/ext/kgio/kgio.h b/ext/kgio/kgio.h
index 0ecfde0..8e4d698 100644
--- a/ext/kgio/kgio.h
+++ b/ext/kgio/kgio.h
@@ -19,8 +19,6 @@
 #include <netdb.h>
 
 #include "ancient_ruby.h"
-#include "nonblock.h"
-#include "my_fileno.h"
 
 struct io_args {
         VALUE io;
diff --git a/ext/kgio/poll.c b/ext/kgio/poll.c
index 89f4623..15774d8 100644
--- a/ext/kgio/poll.c
+++ b/ext/kgio/poll.c
@@ -1,5 +1,6 @@
 #include "kgio.h"
 #if defined(USE_KGIO_POLL)
+#include "my_fileno.h"
 #include <time.h>
 #include "broken_system_compat.h"
 #include <poll.h>
diff --git a/ext/kgio/read_write.c b/ext/kgio/read_write.c
index 7df7070..d935a62 100644
--- a/ext/kgio/read_write.c
+++ b/ext/kgio/read_write.c
@@ -1,4 +1,6 @@
 #include "kgio.h"
+#include "my_fileno.h"
+#include "nonblock.h"
 static VALUE sym_wait_readable, sym_wait_writable;
 static VALUE eErrno_EPIPE, eErrno_ECONNRESET;
 static ID id_set_backtrace;
diff --git a/ext/kgio/wait.c b/ext/kgio/wait.c
index fe3896d..6980561 100644
--- a/ext/kgio/wait.c
+++ b/ext/kgio/wait.c
@@ -1,4 +1,5 @@
 #include "kgio.h"
+#include "my_fileno.h"
 static ID id_wait_rd, id_wait_wr;
 
 #if defined(HAVE_RB_TIME_INTERVAL) && defined(HAVE_RB_WAIT_FOR_SINGLE_FD)