aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-26 16:19:33 +0100
committerMax Kellermann <max@duempel.org>2008-10-26 16:19:33 +0100
commit4fa36a15bfa8237d2741adbf6198cf11301c3e8f (patch)
tree5aa7723830faa50757d3386ab59a58a9b780e7df /src
parentece8c1347caae044db0fc4565ed3db6028d7b90e (diff)
downloadmpd-4fa36a15bfa8237d2741adbf6198cf11301c3e8f.tar.gz
mpd-4fa36a15bfa8237d2741adbf6198cf11301c3e8f.tar.xz
mpd-4fa36a15bfa8237d2741adbf6198cf11301c3e8f.zip
command: removed range check from check_bool()
check_bool() accepts only "0" or "1". The range check is superfluous.
Diffstat (limited to 'src')
-rw-r--r--src/command.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/command.c b/src/command.c
index 9d0d1bfef..9619355f6 100644
--- a/src/command.c
+++ b/src/command.c
@@ -192,12 +192,6 @@ check_bool(struct client *client, bool *value_r, const char *s)
return false;
}
- if (value > UINT_MAX) {
- command_error(client, ACK_ERROR_ARG,
- "Number too large: %s", s);
- return false;
- }
-
*value_r = !!value;
return true;
}