]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
ISO C90 forbids mixed declarations and code
authorMathieu Rene <mrene@avgs.ca>
Mon, 22 Feb 2010 19:18:11 +0000 (19:18 +0000)
committerMathieu Rene <mrene@avgs.ca>
Mon, 22 Feb 2010 19:18:11 +0000 (19:18 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16722 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/esl/src/esl.c

index 96efc94c495e7064218fcc50deeafe1fdd0bf712..65b61b84adb5615aa714f0e7fe0aabe9c6c81fde 100644 (file)
@@ -386,12 +386,16 @@ static int sock_setup(esl_handle_t *handle)
     }
 
 #ifdef WIN32
-       BOOL bOptVal = TRUE;
-       int bOptLen = sizeof(BOOL);
-       setsockopt(handle->sock, IPPROTO_TCP, TCP_NODELAY, (const char *)&bOptVal, bOptLen);
+       {
+               BOOL bOptVal = TRUE;
+               int bOptLen = sizeof(BOOL);
+               setsockopt(handle->sock, IPPROTO_TCP, TCP_NODELAY, (const char *)&bOptVal, bOptLen);
+       }
 #else
-       int x = 1;
-       setsockopt(handle->sock, IPPROTO_TCP, TCP_NODELAY, &x, sizeof(x));
+       {
+               int x = 1;
+               setsockopt(handle->sock, IPPROTO_TCP, TCP_NODELAY, &x, sizeof(x));      
+       }
 #endif
 
        return ESL_SUCCESS;