From 517284b80db96b58ea68d7ba974345dc5a2236bb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 2 Jan 2014 11:42:34 +0000 Subject: fix for extra icons in XFire git-svn-id: http://svn.miranda-ng.org/main/trunk@7453 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/xfirepacket.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/Xfire/src/xfirepacket.cpp') diff --git a/protocols/Xfire/src/xfirepacket.cpp b/protocols/Xfire/src/xfirepacket.cpp index 09632137da..9a2087a018 100644 --- a/protocols/Xfire/src/xfirepacket.cpp +++ b/protocols/Xfire/src/xfirepacket.cpp @@ -53,15 +53,15 @@ namespace xfirelib { int nlen=0; //FILE* f2; - if(socket==NULL) return; + if (socket==NULL) return; int r = socket->recv( buf, 5 ); int missingbytes=5-r; - if(missingbytes != 0) { + if (missingbytes != 0) { XERROR3("Returned only %d bytes try last %d bytes again ?!: \n",r,missingbytes); r+= socket->recv( &buf[r], missingbytes ); } - if(r != 5) { + if (r != 5) { XERROR2("Returned less than 5 ?!: %d\n",r); throw SocketException("Connection Closed ?"); } @@ -92,9 +92,9 @@ namespace xfirelib { XDEBUG5("packetid: %d numberOfAtts: %d length: %d Got: %d\n", (unsigned char)packetid,numberOfAtts,len-5,r2); - if(r2 < 1) return; + if (r2 < 1) return; - /*if((unsigned char)packetid==131) + /*if ((unsigned char)packetid==131) { sprintf(temp,"packet%d_%d.dmp",(unsigned char)packetid,rand()); f2=fopen(temp,"wb"); @@ -106,7 +106,7 @@ namespace xfirelib { //sprintf(temp,"packet%d.dmp",(unsigned char)packetid); - if(contentClass == NULL) { + if (contentClass == NULL) { /*sprintf(temp,"packet%d.dmp",(unsigned char)packetid); f2=fopen(temp,"wb"); fwrite(contentbuf,1,len-5,f2); -- cgit v1.2.3