aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-14 19:00:02 +0200
committerMax Kellermann <max@duempel.org>2015-08-14 19:00:02 +0200
commitd053797340ae16b16186fe31d60bb12979ba9b81 (patch)
tree6bd922a06bc5e749a98eb52803d78dc9b2c8f9d3 /src/command
parentc8d0f947d2270a52183c653a641bca5b7321f915 (diff)
downloadmpd-d053797340ae16b16186fe31d60bb12979ba9b81.tar.gz
mpd-d053797340ae16b16186fe31d60bb12979ba9b81.tar.xz
mpd-d053797340ae16b16186fe31d60bb12979ba9b81.zip
protocol/Result: move command_list_num to class Response
Diffstat (limited to '')
-rw-r--r--src/command/AllCommands.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/command/AllCommands.cxx b/src/command/AllCommands.cxx
index aa60736f3..f98018f88 100644
--- a/src/command/AllCommands.cxx
+++ b/src/command/AllCommands.cxx
@@ -363,11 +363,9 @@ command_checked_lookup(Response &r, unsigned permission,
CommandResult
command_process(Client &client, unsigned num, char *line)
{
- Response r(client);
+ Response r(client, num);
Error error;
- command_list_num = num;
-
/* get the command name (first word on the line) */
/* we have to set current_command because Response::Error()
expects it to be set */
@@ -427,7 +425,6 @@ command_process(Client &client, unsigned num, char *line)
: CommandResult::ERROR;
current_command = nullptr;
- command_list_num = 0;
return ret;
}