diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 18:48:38 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 18:48:38 +0200 |
commit | ff626ac76357940b2f0ac5cb243a68ac13df0f8a (patch) | |
tree | 493888a28950f75f5e254c0ded9dc9703ee83dc3 /src/protocol/Result.cxx | |
parent | 59f8144c50765189594d5932fc25869f9ea6e265 (diff) | |
download | mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.gz mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.xz mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.zip |
*: use references instead of pointers
Diffstat (limited to 'src/protocol/Result.cxx')
-rw-r--r-- | src/protocol/Result.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/protocol/Result.cxx b/src/protocol/Result.cxx index e10a731cc..48feee4d4 100644 --- a/src/protocol/Result.cxx +++ b/src/protocol/Result.cxx @@ -27,16 +27,15 @@ const char *current_command; int command_list_num; void -command_success(Client *client) +command_success(Client &client) { client_puts(client, "OK\n"); } void -command_error_v(Client *client, enum ack error, +command_error_v(Client &client, enum ack error, const char *fmt, va_list args) { - assert(client != NULL); assert(current_command != NULL); client_printf(client, "ACK [%i@%i] {%s} ", @@ -48,7 +47,7 @@ command_error_v(Client *client, enum ack error, } void -command_error(Client *client, enum ack error, const char *fmt, ...) +command_error(Client &client, enum ack error, const char *fmt, ...) { va_list args; va_start(args, fmt); |