summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/xfirepacket.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-02 11:42:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-02 11:42:34 +0000
commit517284b80db96b58ea68d7ba974345dc5a2236bb (patch)
tree4f179d2c825378aefced9008bd06857de1486db6 /protocols/Xfire/src/xfirepacket.cpp
parentc0d3c16aab5f5f52ede1f49ffeeafce98e3d073d (diff)
fix for extra icons in XFire
git-svn-id: http://svn.miranda-ng.org/main/trunk@7453 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/xfirepacket.cpp')
-rw-r--r--protocols/Xfire/src/xfirepacket.cpp12
1 files changed, 6 insertions, 6 deletions
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);