about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-06 07:17:09 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-06 07:17:09 +0000
commit8794037db3e88fc03d8bc33d603a0b39a69ddf97 (patch)
treefd870d955589fd332844590f34fd17e08ebb7543
parent0de4a3d46d15ee5097f4a9cfd46363b5f720ae39 (diff)
downloadclogger-8794037db3e88fc03d8bc33d603a0b39a69ddf97.tar.gz
-rw-r--r--ext/clogger_ext/clogger.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c
index 8392c4c..838f37c 100644
--- a/ext/clogger_ext/clogger.c
+++ b/ext/clogger_ext/clogger.c
@@ -246,15 +246,15 @@ static void write_full(int fd, const void *buf, size_t count)
  * allow us to use write_full() iff we detect a blocking file
  * descriptor that wouldn't play nicely with Ruby threading/fibers
  */
-static int raw_fd(VALUE my_fileno)
+static int raw_fd(VALUE my_fd)
 {
 #if defined(HAVE_FCNTL) && defined(F_GETFL) && defined(O_NONBLOCK)
         int fd;
         int flags;
 
-        if (NIL_P(my_fileno))
+        if (NIL_P(my_fd))
                 return -1;
-        fd = NUM2INT(my_fileno);
+        fd = NUM2INT(my_fd);
 
         flags = fcntl(fd, F_GETFL);
         if (flags < 0)