keycodes: add const to a function argument

This commit is contained in:
wm4 2014-02-17 02:30:17 +01:00
parent 5fd661b50e
commit fe586dbbdb
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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,