[svn:parrot] r37711 - trunk/src/io
Infinoid at svn.parrot.org
Infinoid at svn.parrot.org
Wed Mar 25 13:52:08 UTC 2009
Author: Infinoid
Date: Wed Mar 25 13:52:07 2009
New Revision: 37711
URL: https://trac.parrot.org/parrot/changeset/37711
Log:
[io] Fix the following warning.
src/io/socket_unix.c:255: warning: ISO C90 forbids mixed declarations and code
Modified:
trunk/src/io/socket_unix.c
Modified: trunk/src/io/socket_unix.c
==============================================================================
--- trunk/src/io/socket_unix.c Wed Mar 25 13:52:05 2009 (r37710)
+++ trunk/src/io/socket_unix.c Wed Mar 25 13:52:07 2009 (r37711)
@@ -247,13 +247,13 @@
PIO_F_SOCKET | PIO_F_READ|PIO_F_WRITE);
Parrot_Socklen_t addrlen = sizeof (struct sockaddr_in);
struct sockaddr_in *saddr;
+ int newsock;
PARROT_SOCKET(newio)->local = PARROT_SOCKET(socket)->local;
PARROT_SOCKET(newio)->remote = pmc_new(interp, enum_class_Sockaddr);
saddr = SOCKADDR(newio, remote);
- const int newsock = accept(io->os_handle,
- (struct sockaddr *)saddr, &addrlen);
+ newsock = accept(io->os_handle, (struct sockaddr *)saddr, &addrlen);
if (newsock == -1) {
return PMCNULL;
More information about the parrot-commits
mailing list