diff options
author | Max Kellermann <max@duempel.org> | 2008-08-29 09:37:11 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-29 09:37:11 +0200 |
commit | 8811c0e05943edbcb3d7203ef4f61ec89423718a (patch) | |
tree | 666d7e4ecd907f3a7d4c648085ec655efda9aa38 /src/command.c | |
parent | 8b1b82b36374e95bcef8195fcd15e4014e73567d (diff) | |
download | mpd-8811c0e05943edbcb3d7203ef4f61ec89423718a.tar.gz mpd-8811c0e05943edbcb3d7203ef4f61ec89423718a.tar.xz mpd-8811c0e05943edbcb3d7203ef4f61ec89423718a.zip |
export the function client_is_expired()
Instead of passing the pointer to the "expired" flag to
processListOfCommands(), this function should use the client API to
check this flag. We can now remove the "global_expired" hack
introduced recently.
Diffstat (limited to '')
-rw-r--r-- | src/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c index f2468d0b1..c0adf3a13 100644 --- a/src/command.c +++ b/src/command.c @@ -1235,7 +1235,7 @@ static int processCommandInternal(struct client *client, return ret; } -int processListOfCommands(struct client *client, int *permission, int *expired, +int processListOfCommands(struct client *client, int *permission, int listOK, struct strnode *list) { int fd = client_get_fd(client); @@ -1249,7 +1249,7 @@ int processListOfCommands(struct client *client, int *permission, int *expired, cur->data); ret = processCommandInternal(client, permission, cur->data, cur); DEBUG("processListOfCommands: command returned %i\n", ret); - if (ret != 0 || (*expired) != 0) + if (ret != 0 || client_is_expired(client)) goto out; else if (listOK) fdprintf(fd, "list_OK\n"); |