summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/sendstatusmessagepacket.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:33:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:33:42 +0000
commit85bd008c039eb1d93894e94fba9d158a42a71a12 (patch)
tree2d72d10759f6928e9e4b960175d2de01b5cf7e12 /protocols/Xfire/src/sendstatusmessagepacket.cpp
parent222802c2986dcaf029fdfb828b7679bdabfa7bb2 (diff)
massive code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14910 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/sendstatusmessagepacket.cpp')
-rw-r--r--protocols/Xfire/src/sendstatusmessagepacket.cpp29
1 files changed, 13 insertions, 16 deletions
diff --git a/protocols/Xfire/src/sendstatusmessagepacket.cpp b/protocols/Xfire/src/sendstatusmessagepacket.cpp
index 6495515119..88284ab4de 100644
--- a/protocols/Xfire/src/sendstatusmessagepacket.cpp
+++ b/protocols/Xfire/src/sendstatusmessagepacket.cpp
@@ -24,20 +24,17 @@
#include "sendstatusmessagepacket.h"
-#include <string.h>
-
-namespace xfirelib {
-
- int SendStatusMessagePacket::getPacketContent(char *buf) {
- int index = 0;
- buf[index++] = 0x2e;
- buf[index++] = 0x01;
- buf[index++] = awaymsg.length();
- buf[index++] = 0x00;
- memcpy(buf+index,awaymsg.c_str(),awaymsg.length());
- index+=awaymsg.length();
- return index;
- }
-
-
+namespace xfirelib
+{
+ int SendStatusMessagePacket::getPacketContent(char *buf)
+ {
+ int index = 0;
+ buf[index++] = 0x2e;
+ buf[index++] = 0x01;
+ buf[index++] = awaymsg.length();
+ buf[index++] = 0x00;
+ memcpy(buf + index, awaymsg.c_str(), awaymsg.length());
+ index += awaymsg.length();
+ return index;
+ }
};