diff options
author | Max Kellermann <max@duempel.org> | 2015-08-11 22:34:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-08-11 22:43:10 +0200 |
commit | 9231f420c199a7c12cb8aad17bcca80a0aaca6ad (patch) | |
tree | 474755c86ced85b966a03bd79dfffbce48c17f43 /src/command/OtherCommands.cxx | |
parent | 0f92d021a1dc2992352b635846428229d2c9ffbb (diff) |
protocol/ArgParser: overload as ParseCommandArg(), pass references
Diffstat (limited to 'src/command/OtherCommands.cxx')
-rw-r--r-- | src/command/OtherCommands.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx index e5696e696..4fc7e56f6 100644 --- a/src/command/OtherCommands.cxx +++ b/src/command/OtherCommands.cxx @@ -309,7 +309,7 @@ CommandResult handle_setvol(Client &client, Request args) { unsigned level; - if (!check_unsigned(client, &level, args.front())) + if (!ParseCommandArg(client, level, args.front())) return CommandResult::ERROR; if (level > 100) { @@ -330,7 +330,7 @@ CommandResult handle_volume(Client &client, Request args) { int relative; - if (!check_int(client, &relative, args.front())) + if (!ParseCommandArg(client, relative, args.front())) return CommandResult::ERROR; if (relative < -100 || relative > 100) { |