summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2013-12-20 19:32:45 +0100
committerMartin Herkt <lachs0r@srsfckn.biz>2013-12-20 19:32:45 +0100
commit2d3c7f3b90eb1f46e4e967799df8aca75a59080c (patch)
treeee2ac4f716ecf8b9fdf13d8426676fe5ee5313b9
parent2f6144c74b90fe8e8fae556ea8c2d28b98f0acd2 (diff)
downloadmpv-2d3c7f3b90eb1f46e4e967799df8aca75a59080c.tar.bz2
mpv-2d3c7f3b90eb1f46e4e967799df8aca75a59080c.tar.xz
input: make parse_cmd_strv take const args
-rw-r--r--input/input.c2
-rw-r--r--input/input.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/input/input.c b/input/input.c
index 942dd00782..8f3276e2bf 100644
--- a/input/input.c
+++ b/input/input.c
@@ -1158,7 +1158,7 @@ mp_cmd_t *mp_input_parse_cmd(struct input_ctx *ictx, bstr str, const char *loc)
}
struct mp_cmd *mp_input_parse_cmd_strv(struct mp_log *log, int def_flags,
- char **argv, const char *location)
+ const char **argv, const char *location)
{
bstr args[MP_CMD_MAX_ARGS];
int num = 0;
diff --git a/input/input.h b/input/input.h
index 77afeebac6..62892dc15a 100644
--- a/input/input.h
+++ b/input/input.h
@@ -236,7 +236,7 @@ struct mp_cmd *mp_input_parse_cmd(struct input_ctx *ictx, bstr str,
// i.e. a ";" argument does not start a new command.
// The _strv version is limitted to MP_CMD_MAX_ARGS argv array items.
struct mp_cmd *mp_input_parse_cmd_strv(struct mp_log *log, int def_flags,
- char **argv, const char *location);
+ const char **argv, const char *location);
struct mp_cmd *mp_input_parse_cmd_bstrv(struct mp_log *log, int def_flags,
int argc, bstr *argv,
const char *location);