changeset 25766:6201cc9cca7f

Fix some types to const
author reimar
date Sat, 19 Jan 2008 11:42:03 +0000
parents 304fc0bbefe1
children 6801d475ab47
files input/input.c
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Sat Jan 19 11:33:36 2008 +0000
+++ b/input/input.c	Sat Jan 19 11:42:03 2008 +0000
@@ -739,7 +739,8 @@
   int i,l;
   int pausing = 0;
   char *ptr,*e;
-  mp_cmd_t *cmd, *cmd_def;
+  mp_cmd_t *cmd;
+  const mp_cmd_t *cmd_def;
 
 #ifdef MP_DEBUG
   assert(str != NULL);
@@ -985,7 +986,7 @@
   
 
 static char*
-mp_input_find_bind_for_key(mp_cmd_bind_t* binds, int n,int* keys) {
+mp_input_find_bind_for_key(const mp_cmd_bind_t* binds, int n,int* keys) {
   int j;
 
   if (n <= 0) return NULL;
@@ -1453,7 +1454,7 @@
 #define SPACE_CHAR " \n\r\t"
 
 void
-mp_input_bind_keys(int keys[MP_MAX_KEY_DOWN+1], char* cmd) {
+mp_input_bind_keys(const int keys[MP_MAX_KEY_DOWN+1], char* cmd) {
   int i = 0,j;
   mp_cmd_bind_t* bind = NULL;
   mp_cmd_bind_section_t* bind_section = NULL;
@@ -1497,7 +1498,7 @@
 }
 
 void
-mp_input_add_binds(mp_cmd_bind_t* list) {
+mp_input_add_binds(const mp_cmd_bind_t* list) {
   int i;
   for(i = 0 ; list[i].cmd ; i++)
     mp_input_bind_keys(list[i].input,list[i].cmd);
@@ -1810,7 +1811,7 @@
 }
 
 static int mp_input_print_cmd_list(m_option_t* cfg) {
-  mp_cmd_t *cmd;
+  const mp_cmd_t *cmd;
   int i,j;
   const char* type;