File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 433
433
keybind_cmd_bind (GArray * keymap , const char * keybind , long action )
434
434
{
435
435
char * caption = NULL ;
436
- long key ;
436
+ int key ;
437
437
438
438
key = tty_keyname_to_keycode (keybind , & caption );
439
439
keymap_add (keymap , key , action , caption );
Original file line number Diff line number Diff line change @@ -1438,7 +1438,7 @@ channels_down (void)
1438
1438
* Return the code associated with the symbolic name keyname
1439
1439
*/
1440
1440
1441
- long
1441
+ int
1442
1442
tty_keyname_to_keycode (const char * name , char * * label )
1443
1443
{
1444
1444
char * * lc_keys , * * p ;
@@ -1548,7 +1548,7 @@ tty_keyname_to_keycode (const char *name, char **label)
1548
1548
if (use_meta != -1 )
1549
1549
k = ALT (k );
1550
1550
1551
- return ( long ) k ;
1551
+ return k ;
1552
1552
}
1553
1553
1554
1554
/* --------------------------------------------------------------------------------------------- */
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ void init_key (void);
75
75
void init_key_input_fd (void );
76
76
void done_key (void );
77
77
78
- long tty_keyname_to_keycode (const char * name , char * * label );
78
+ int tty_keyname_to_keycode (const char * name , char * * label );
79
79
char * tty_keycode_to_keyname (const int keycode );
80
80
/* mouse support */
81
81
int tty_get_event (struct Gpm_Event * event , gboolean redo_event , gboolean block );
Original file line number Diff line number Diff line change @@ -624,7 +624,6 @@ load_keys_from_section (const char *terminal, mc_config_t *cfg)
624
624
char * section_name ;
625
625
gchar * * profile_keys , * * keys ;
626
626
char * valcopy , * value ;
627
- long key_code ;
628
627
629
628
if (terminal == NULL )
630
629
return ;
@@ -643,7 +642,8 @@ load_keys_from_section (const char *terminal, mc_config_t *cfg)
643
642
continue ;
644
643
}
645
644
646
- key_code = tty_keyname_to_keycode (* profile_keys , NULL );
645
+ const int key_code = tty_keyname_to_keycode (* profile_keys , NULL );
646
+
647
647
if (key_code != 0 )
648
648
{
649
649
gchar * * values ;
You can’t perform that action at this time.
0 commit comments