src/tty/: sanitized sprinkled 'const' qualifiers

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This commit is contained in:
Sergei Trofimovich 2009-08-22 14:44:50 +03:00 committed by Andrew Borodin
parent b933da347e
commit 5f5d3b8caf
3 changed files with 4 additions and 4 deletions

View File

@ -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 *

View File

@ -197,7 +197,7 @@ typedef struct key_def {
Escape */
} key_def;
typedef const struct {
typedef struct {
int code;
const char *seq;
int action;

View File

@ -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';