diff options
author | Max Kellermann <max@duempel.org> | 2015-08-13 12:48:31 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-08-13 12:48:31 +0200 |
commit | 86e036c3933def22b6ff0eae5bcf9cd7103240e7 (patch) | |
tree | e8d812461e22b189cea3b3df908515cebbfe0cd1 /src/command/NeighborCommands.cxx | |
parent | 7652a2986b0d0ad55b2776685130f1c68d7108c7 (diff) | |
download | mpd-86e036c3933def22b6ff0eae5bcf9cd7103240e7.tar.gz mpd-86e036c3933def22b6ff0eae5bcf9cd7103240e7.tar.xz mpd-86e036c3933def22b6ff0eae5bcf9cd7103240e7.zip |
command: pass Response object to command callbacks
Diffstat (limited to '')
-rw-r--r-- | src/command/NeighborCommands.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/command/NeighborCommands.cxx b/src/command/NeighborCommands.cxx index d1b2ec7c7..254f7a346 100644 --- a/src/command/NeighborCommands.cxx +++ b/src/command/NeighborCommands.cxx @@ -40,10 +40,8 @@ neighbor_commands_available(const Instance &instance) } CommandResult -handle_listneighbors(Client &client, gcc_unused Request args) +handle_listneighbors(Client &client, gcc_unused Request args, Response &r) { - Response r(client); - const NeighborGlue *const neighbors = client.partition.instance.neighbors; if (neighbors == nullptr) { |