summaryrefslogtreecommitdiff
path: root/protocols/JabberG/jabber_proxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/jabber_proxy.cpp')
-rw-r--r--protocols/JabberG/jabber_proxy.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/JabberG/jabber_proxy.cpp b/protocols/JabberG/jabber_proxy.cpp
index 9ee30bf03b..e6f7ef2f7b 100644
--- a/protocols/JabberG/jabber_proxy.cpp
+++ b/protocols/JabberG/jabber_proxy.cpp
@@ -37,14 +37,14 @@ int JabberHttpGatewayInit( HANDLE /*hConn*/, NETLIBOPENCONNECTION* /*nloc*/, NET
char szSid[33], szHttpServer[256], szHttpGetUrl[300], szHttpPostUrl[300];
NETLIBHTTPPROXYINFO nlhpi = {0};
- for( responseBytes = 0; ; ) {
+ for ( responseBytes = 0; ; ) {
recvResult = Netlib_Recv( hConn, response + responseBytes, sizeof( response ) - responseBytes, MSG_DUMPPROXY );
- if( recvResult<=0 ) break;
+ if ( recvResult<=0 ) break;
responseBytes += recvResult;
- if( responseBytes == sizeof( response ))
+ if ( responseBytes == sizeof( response ))
break;
}
- if( responseBytes < 31 )
+ if ( responseBytes < 31 )
{
SetLastError( ERROR_INVALID_DATA );
return 0;
@@ -60,7 +60,7 @@ int JabberHttpGatewayInit( HANDLE /*hConn*/, NETLIBOPENCONNECTION* /*nloc*/, NET
unpackDWord( &buf, &dwSid4 );
sprintf( szSid, "%08x%08x%08x%08x", dwSid1, dwSid2, dwSid3, dwSid4 );
unpackWord( &buf, &wIpLen );
- if( responseBytes < 30 + wIpLen || wIpLen == 0 || wIpLen > sizeof( szHttpServer ) - 1 )
+ if ( responseBytes < 30 + wIpLen || wIpLen == 0 || wIpLen > sizeof( szHttpServer ) - 1 )
{
SetLastError( ERROR_INVALID_DATA );
return 0;
@@ -111,9 +111,9 @@ int icq_httpGatewayWrapSend( HANDLE hConn, PBYTE buf, int len, int flags, MIRAND
packString( &packet, buf, ( WORD )len );
sendResult = Netlib_Send( hConn, packet.pData, packet.wLen, flags );
mir_free( packet.pData );
- if( sendResult <= 0 )
+ if ( sendResult <= 0 )
return sendResult;
- if( sendResult < 14 )
+ if ( sendResult < 14 )
return 0;
return sendResult - 14;
}
@@ -125,7 +125,7 @@ PBYTE icq_httpGatewayUnwrapRecv( NETLIBHTTPREQUEST *nlhr, PBYTE buf, int len, in
int i, copyBytes;
tbuf = buf;
- for( i = 0;; )
+ for ( i = 0;; )
{
if ( tbuf - buf + 2 > len ) break;
unpackWord( &tbuf, &wLen );