make get_key() result const char *, so that it is not modified

This commit is contained in:
marschap
2006-04-06 13:25:14 +00:00
parent bc01f2e012
commit 743871cff3
36 changed files with 76 additions and 77 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ int menuscreens_shutdown();
/** This function indicates to the input part whether this key was the
* reserved menu key.
*/
bool is_menu_key (char * key);
bool is_menu_key (const char * key);
/** Meant for other parts of the program to inform the menuscreen that the
* item is about to be removed.
@@ -44,7 +44,7 @@ void menuscreen_inform_item_modified (MenuItem * item);
/** This handler handles the keypresses for the menu.
*/
void menuscreen_key_handler (char *key);
void menuscreen_key_handler (const char *key);
/** Adds a menu for the given screen */
void menuscreen_add_screen (Screen * s);