Dropped compatibility with VDR < 1.5.16

This commit is contained in:
Frank Schmirler
2011-03-07 21:50:05 +01:00
committed by root
parent ee7929bd39
commit 2cb0ba6cf1
6 changed files with 5 additions and 30 deletions

View File

@@ -1783,14 +1783,7 @@ bool cConnectionVTP::Respond(int Code, const char *Message, ...)
{
va_list ap;
va_start(ap, Message);
#if APIVERSNUM < 10515
char *buffer;
if (vasprintf(&buffer, Message, ap) < 0)
buffer = strdup("???");
cString str(buffer, true);
#else
cString str = cString::sprintf(Message, ap);
#endif
va_end(ap);
if (Code >= 0 && m_LastCommand != NULL) {