foxygit / doom Log in
commit e0b005e61ac8fec632969c174d07f2c9652c0b4e
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Jan 22 19:02:29 2019 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Jan 22 19:02:29 2019 +0200

    setup: Make AddKeyControl name parameter const
---
 src/setup/keyboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/setup/keyboard.c b/src/setup/keyboard.c
index b88fe92d..5fb2378d 100644
--- a/src/setup/keyboard.c
+++ b/src/setup/keyboard.c
@@ -146,7 +146,7 @@ static void KeySetCallback(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(variable))

 // Add a label and keyboard input to the specified table.

-static void AddKeyControl(TXT_UNCAST_ARG(table), char *name, int *var)
+static void AddKeyControl(TXT_UNCAST_ARG(table), const char *name, int *var)
 {
     TXT_CAST_ARG(txt_table_t, table);
     txt_key_input_t *key_input;