diff options
Diffstat (limited to 'protocols/Xfire/src/xfireutils.cpp')
-rw-r--r-- | protocols/Xfire/src/xfireutils.cpp | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/protocols/Xfire/src/xfireutils.cpp b/protocols/Xfire/src/xfireutils.cpp index 93793c72e7..73b78961a0 100644 --- a/protocols/Xfire/src/xfireutils.cpp +++ b/protocols/Xfire/src/xfireutils.cpp @@ -23,22 +23,21 @@ #include "stdafx.h" #include "xdebug.h" -#include <string.h> -#include <iostream> #include "xfireutils.h" - -namespace xfirelib { - using namespace std; - XFireUtils::XFireUtils() { - } +namespace xfirelib +{ + XFireUtils::XFireUtils() + { + } - int XFireUtils::addAttributName(char *packet,int packet_length, char *att){ - XDEBUG3( "Adding %d chars at position %d\n",mir_strlen(att),packet_length); - packet[packet_length] = (char)mir_strlen(att);//set att length - memcpy(packet+packet_length+1,att,mir_strlen(att)); //set attname - return packet_length+1+mir_strlen(att); - } + int XFireUtils::addAttributName(char *packet, int packet_length, char *att) + { + XDEBUG3("Adding %d chars at position %d\n", mir_strlen(att), packet_length); + packet[packet_length] = (char)mir_strlen(att);//set att length + memcpy(packet + packet_length + 1, att, mir_strlen(att)); //set attname + return packet_length + 1 + mir_strlen(att); + } }; |