diff options
author | madmaxoft <github@xoft.cz> | 2014-01-16 08:34:10 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-16 08:34:10 +0100 |
commit | ba49a32c3a5b10bfe1ae90edd08f06acad0389fd (patch) | |
tree | 88454b07729b624e96946d0825f3d7bbb1b9e572 /src/Log.cpp | |
parent | Merge pull request #545 from mc-server/VarArgs (diff) | |
download | cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.gz cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.bz2 cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.lz cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.xz cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.tar.zst cuberite-ba49a32c3a5b10bfe1ae90edd08f06acad0389fd.zip |
Diffstat (limited to 'src/Log.cpp')
-rw-r--r-- | src/Log.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/Log.cpp b/src/Log.cpp index 8f811f14f..2d6be0f59 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -99,10 +99,10 @@ void cLog::ClearLog() -void cLog::Log(const char * a_Format, va_list argList, va_list argListCopy) +void cLog::Log(const char * a_Format, va_list argList) { AString Message; - AppendVPrintf(Message, a_Format, argList, argListCopy); + AppendVPrintf(Message, a_Format, argList); time_t rawtime; time ( &rawtime ); @@ -149,11 +149,9 @@ void cLog::Log(const char * a_Format, va_list argList, va_list argListCopy) void cLog::Log(const char * a_Format, ...) { - va_list argList, argListCopy; + va_list argList; va_start(argList, a_Format); - va_start(argListCopy, a_Format); - Log(a_Format, argList, argListCopy); - va_end(argListCopy); + Log(a_Format, argList); va_end(argList); } |