aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 19:17:25 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 19:17:25 +0200
commit1ce5f4d75ba5d3c151670fd36a816bfd8ee75c80 (patch)
treeb8d8a1e24cb992198fc0566f37686efad20f2d22 /src/client.c
parent2835e376842facea7b7c145889ac64d413377b6c (diff)
downloadmpd-1ce5f4d75ba5d3c151670fd36a816bfd8ee75c80.tar.gz
mpd-1ce5f4d75ba5d3c151670fd36a816bfd8ee75c80.tar.xz
mpd-1ce5f4d75ba5d3c151670fd36a816bfd8ee75c80.zip
command: use client_[gs]et_permission()
Don't pass a pointer to client->permission to processCommand(), better let the code in command.c use the new permission getter/setter functions.
Diffstat (limited to '')
-rw-r--r--src/client.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client.c b/src/client.c
index 6b3be05d0..f0603b3bb 100644
--- a/src/client.c
+++ b/src/client.c
@@ -337,7 +337,6 @@ static int client_process_line(struct client *client)
DEBUG("client %i: process command "
"list\n", client->num);
ret = processListOfCommands(client,
- &(client->permission),
client->cmd_list_OK,
client->cmd_list);
DEBUG("client %i: process command "
@@ -384,8 +383,7 @@ static int client_process_line(struct client *client)
} else {
DEBUG("client %i: process command \"%s\"\n",
client->num, line);
- ret = processCommand(client,
- &(client->permission), line);
+ ret = processCommand(client, line);
DEBUG("client %i: command returned %i\n",
client->num, ret);