summaryrefslogtreecommitdiffstats
path: root/Tools/ProtoProxy/Connection.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-17 12:38:25 +0100
committermadmaxoft <github@xoft.cz>2014-01-17 12:38:25 +0100
commitc4f4eda3474bceff61fa275c416e57fe8a3de7fa (patch)
treebf8d619d6ed27c2ba2dc954301bf548b48d0ab90 /Tools/ProtoProxy/Connection.cpp
parentProtoProxy: Fixed #include filename case. (diff)
downloadcuberite-c4f4eda3474bceff61fa275c416e57fe8a3de7fa.tar
cuberite-c4f4eda3474bceff61fa275c416e57fe8a3de7fa.tar.gz
cuberite-c4f4eda3474bceff61fa275c416e57fe8a3de7fa.tar.bz2
cuberite-c4f4eda3474bceff61fa275c416e57fe8a3de7fa.tar.lz
cuberite-c4f4eda3474bceff61fa275c416e57fe8a3de7fa.tar.xz
cuberite-c4f4eda3474bceff61fa275c416e57fe8a3de7fa.tar.zst
cuberite-c4f4eda3474bceff61fa275c416e57fe8a3de7fa.zip
Diffstat (limited to '')
-rw-r--r--Tools/ProtoProxy/Connection.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/Tools/ProtoProxy/Connection.cpp b/Tools/ProtoProxy/Connection.cpp
index e91b9935e..de67c6e43 100644
--- a/Tools/ProtoProxy/Connection.cpp
+++ b/Tools/ProtoProxy/Connection.cpp
@@ -249,12 +249,10 @@ void cConnection::Run(void)
void cConnection::Log(const char * a_Format, ...)
{
- va_list args, argsCopy;
+ va_list args;
va_start(args, a_Format);
- va_start(argsCopy, a_Format);
AString msg;
- AppendVPrintf(msg, a_Format, args, argsCopy);
- va_end(argsCopy);
+ AppendVPrintf(msg, a_Format, args);
va_end(args);
AString FullMsg;
Printf(FullMsg, "[%5.3f] %s\n", GetRelativeTime(), msg.c_str());
@@ -276,12 +274,10 @@ void cConnection::Log(const char * a_Format, ...)
void cConnection::DataLog(const void * a_Data, int a_Size, const char * a_Format, ...)
{
- va_list args, argsCopy;
+ va_list args;
va_start(args, a_Format);
- va_start(argsCopy, a_Format);
AString msg;
- AppendVPrintf(msg, a_Format, args, argsCopy);
- va_end(argsCopy);
+ AppendVPrintf(msg, a_Format, args);
va_end(args);
AString FullMsg;
AString Hex;