mirror of https://github.com/MidnightCommander/mc
src/tty/: sanitized sprinkled 'const' qualifiers
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This commit is contained in:
parent
b933da347e
commit
5f5d3b8caf
|
@ -23,7 +23,7 @@ struct color_table_s {
|
|||
int value;
|
||||
};
|
||||
|
||||
extern const struct color_table_s const color_table [];
|
||||
extern const struct color_table_s color_table [];
|
||||
|
||||
#ifdef HAVE_SLANG
|
||||
# define CTYPE const char *
|
||||
|
|
|
@ -197,7 +197,7 @@ typedef struct key_def {
|
|||
Escape */
|
||||
} key_def;
|
||||
|
||||
typedef const struct {
|
||||
typedef struct {
|
||||
int code;
|
||||
const char *seq;
|
||||
int action;
|
||||
|
|
|
@ -474,10 +474,10 @@ tty_print_alt_char (int c)
|
|||
void
|
||||
tty_print_anychar (int c)
|
||||
{
|
||||
unsigned char str[6 + 1];
|
||||
char str[6 + 1];
|
||||
|
||||
if ( c > 255 ) {
|
||||
int res = g_unichar_to_utf8 (c, (char *)str);
|
||||
int res = g_unichar_to_utf8 (c, str);
|
||||
if ( res == 0 ) {
|
||||
str[0] = '.';
|
||||
str[1] = '\0';
|
||||
|
|
Loading…
Reference in New Issue