1
1

src/tty/: sanitized sprinkled 'const' qualifiers

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
Этот коммит содержится в:
Sergei Trofimovich 2009-08-22 14:44:50 +03:00 коммит произвёл Andrew Borodin
родитель b933da347e
Коммит 5f5d3b8caf
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

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