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

Infinoid at svn.parrot.org Infinoid at svn.parrot.org
Wed Apr 1 06:22:43 UTC 2009


Author: Infinoid
Date: Wed Apr  1 06:22:42 2009
New Revision: 37835
URL: https://trac.parrot.org/parrot/changeset/37835

Log:
[io] Remove an extra bit of code I missed in r37834.

Modified:
   trunk/src/io/socket_win32.c

Modified: trunk/src/io/socket_win32.c
==============================================================================
--- trunk/src/io/socket_win32.c	Wed Apr  1 05:22:39 2009	(r37834)
+++ trunk/src/io/socket_win32.c	Wed Apr  1 06:22:42 2009	(r37835)
@@ -78,20 +78,6 @@
 {
     ASSERT_ARGS(Parrot_io_socket_win32)
     int sock, i = 1;
-    /* convert Parrot's family to system family */
-    if (fam < 0 || fam >= PIO_PF_MAX)
-        return -1;
-    fam = pio_pf[fam];
-    if (fam < 0)
-        return -1;
-
-    /* convert Parrot's socket type to system type */
-    if (type < 0 || type >= PIO_SOCK_MAX)
-        return -1;
-    type = pio_sock[type];
-    if (type < 0)
-        return -1;
-
     sock = socket(fam, type, proto);
     if (sock >= 0) {
         setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (const char*)&i, sizeof (i));


More information about the parrot-commits mailing list