summaryrefslogtreecommitdiff
path: root/src/command/PlaylistCommands.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/PlaylistCommands.cxx')
-rw-r--r--src/command/PlaylistCommands.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/command/PlaylistCommands.cxx b/src/command/PlaylistCommands.cxx
index 56da71078..f6f610d7a 100644
--- a/src/command/PlaylistCommands.cxx
+++ b/src/command/PlaylistCommands.cxx
@@ -146,8 +146,7 @@ handle_playlistdelete(Client &client, Request args)
{
const char *const name = args[0];
unsigned from;
-
- if (!check_unsigned(client, &from, args[1]))
+ if (!ParseCommandArg(client, from, args[1]))
return CommandResult::ERROR;
Error error;
@@ -161,10 +160,9 @@ handle_playlistmove(Client &client, Request args)
{
const char *const name = args.front();
unsigned from, to;
-
- if (!check_unsigned(client, &from, args[1]))
+ if (!ParseCommandArg(client, from, args[1]))
return CommandResult::ERROR;
- if (!check_unsigned(client, &to, args[2]))
+ if (!ParseCommandArg(client, to, args[2]))
return CommandResult::ERROR;
Error error;