apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1083975 - /apr/apr/trunk/network_io/unix/sockets.c
Date Mon, 21 Mar 2011 21:44:19 GMT
Author: trawick
Date: Mon Mar 21 21:44:18 2011
New Revision: 1083975

URL: http://svn.apache.org/viewvc?rev=1083975&view=rev
Log:
fix indentation-over-syntax blunder in r1082963 which broke sockets
for Solaris et al

Modified:
    apr/apr/trunk/network_io/unix/sockets.c

Modified: apr/apr/trunk/network_io/unix/sockets.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sockets.c?rev=1083975&r1=1083974&r2=1083975&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/sockets.c (original)
+++ apr/apr/trunk/network_io/unix/sockets.c Mon Mar 21 21:44:18 2011
@@ -176,16 +176,18 @@ apr_status_t apr_socket_create(apr_socke
     {
         int flags;
 
-        if ((flags = fcntl((*new)->socketdes, F_GETFD)) == -1)
+        if ((flags = fcntl((*new)->socketdes, F_GETFD)) == -1) {
             close((*new)->socketdes);
             (*new)->socketdes = -1;
             return errno;
+        }
 
         flags |= FD_CLOEXEC;
-        if (fcntl((*new)->socketdes, F_SETFD, flags) == -1)
+        if (fcntl((*new)->socketdes, F_SETFD, flags) == -1) {
             close((*new)->socketdes);
             (*new)->socketdes = -1;
             return errno;
+        }
     }
 #endif
 



Mime
View raw message