protocol/Result: move command_list_num to class Response

This commit is contained in:
Max Kellermann
2015-08-14 19:00:02 +02:00
parent c8d0f947d2
commit d053797340
6 changed files with 12 additions and 10 deletions

View File

@@ -65,8 +65,8 @@ Response::Error(enum ack code, const char *msg)
void
Response::FormatError(enum ack code, const char *fmt, ...)
{
Format("ACK [%i@%i] {%s} ",
(int)code, command_list_num, current_command);
Format("ACK [%i@%u] {%s} ",
(int)code, list_index, current_command);
va_list args;
va_start(args, fmt);