aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:51:59 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 13:51:59 +0200
commit54371add1349e72684506868f72ee4919fd69b0a (patch)
tree832d83955a37152e6ce22fe6a796a4b32138558d /src/client.c
parent4ddc0a48e2e53acc58990ec72e907a136e51d77e (diff)
downloadmpd-54371add1349e72684506868f72ee4919fd69b0a.tar.gz
mpd-54371add1349e72684506868f72ee4919fd69b0a.tar.xz
mpd-54371add1349e72684506868f72ee4919fd69b0a.zip
command: added command_success() and command_error()
These two functions take a client struct instead of the file descriptor. We will now begin passing the client struct around instead of a raw file descriptor (which needed a linear lookup in the client list to be useful).
Diffstat (limited to '')
-rw-r--r--src/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c
index fd0695cc3..9bb0b224c 100644
--- a/src/client.c
+++ b/src/client.c
@@ -348,7 +348,7 @@ static int client_process_line(struct client *client)
}
if (ret == 0)
- commandSuccess(client->fd);
+ command_success(client);
client_write_output(client);
free_cmd_list(client->cmd_list);
@@ -394,7 +394,7 @@ static int client_process_line(struct client *client)
}
if (ret == 0)
- commandSuccess(client->fd);
+ command_success(client);
client_write_output(client);
}