summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-17 02:30:17 +0100
committerwm4 <wm4@nowhere>2014-02-17 02:52:58 +0100
commitfe586dbbdb129e00be6c2b5e6739341dc019ab1c (patch)
treeb99d2a320e7bed72c0b63d017d321edf5d8901e6 /input
parent5fd661b50ea60f32e73249d14b0c118dc1ac5dc6 (diff)
downloadmpv-fe586dbbdb129e00be6c2b5e6739341dc019ab1c.tar.bz2
mpv-fe586dbbdb129e00be6c2b5e6739341dc019ab1c.tar.xz
keycodes: add const to a function argument
Diffstat (limited to 'input')
-rw-r--r--input/keycodes.c2
-rw-r--r--input/keycodes.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/input/keycodes.c b/input/keycodes.c
index 66cb403c23..7d9c9bee55 100644
--- a/input/keycodes.c
+++ b/input/keycodes.c
@@ -283,7 +283,7 @@ char *mp_input_get_key_name(int key)
return dst.start;
}
-char *mp_input_get_key_combo_name(int *keys, int max)
+char *mp_input_get_key_combo_name(const int *keys, int max)
{
bstr dst = {0};
while (max > 0) {
diff --git a/input/keycodes.h b/input/keycodes.h
index e7dd10c8ab..adc33889fb 100644
--- a/input/keycodes.h
+++ b/input/keycodes.h
@@ -260,7 +260,7 @@ int mp_input_get_key_from_name(const char *name);
char *mp_input_get_key_name(int key);
// Combination of multiple keys to string.
-char *mp_input_get_key_combo_name(int *keys, int max);
+char *mp_input_get_key_combo_name(const int *keys, int max);
// String containing combination of multiple string to keys.
int mp_input_get_keys_from_string(char *str, int max_num_keys,