[svn:parrot] r38765 - trunk/src/io

petdance at svn.parrot.org petdance at svn.parrot.org
Thu May 14 03:59:22 UTC 2009


Author: petdance
Date: Thu May 14 03:59:22 2009
New Revision: 38765
URL: https://trac.parrot.org/parrot/changeset/38765

Log:
localized a variable

Modified:
   trunk/src/io/socket_unix.c

Modified: trunk/src/io/socket_unix.c
==============================================================================
--- trunk/src/io/socket_unix.c	Thu May 14 03:55:22 2009	(r38764)
+++ trunk/src/io/socket_unix.c	Thu May 14 03:59:22 2009	(r38765)
@@ -410,7 +410,6 @@
     int usec)
 {
     ASSERT_ARGS(Parrot_io_poll_unix)
-    int n;
     fd_set r, w, e;
     struct timeval t;
     Parrot_Socket_attributes * io = PARROT_SOCKET(socket);
@@ -424,6 +423,7 @@
     if (which & 4) FD_SET(io->os_handle, &e);
 AGAIN:
     if ((select(io->os_handle+1, &r, &w, &e, &t)) >= 0) {
+        int n;
         n = (FD_ISSET(io->os_handle, &r) ? 1 : 0);
         n |= (FD_ISSET(io->os_handle, &w) ? 2 : 0);
         n |= (FD_ISSET(io->os_handle, &e) ? 4 : 0);


More information about the parrot-commits mailing list