1
1

* slint.c (slang_reset_softkeys): Cast arguments from size_t to

int to avoid a warning on 64-bit systems.
Этот коммит содержится в:
Pavel Roskin 2003-01-24 21:36:29 +00:00
родитель e606c7bf78
Коммит 8be1c7add5
2 изменённых файлов: 10 добавлений и 6 удалений

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

@ -1,5 +1,8 @@
2003-01-24 Pavel Roskin <proski@gnu.org> 2003-01-24 Pavel Roskin <proski@gnu.org>
* slint.c (slang_reset_softkeys): Cast arguments from size_t to
int to avoid a warning on 64-bit systems.
* subshell.c (resize_tty) [!TIOCSWINSZ]: Warning fix. * subshell.c (resize_tty) [!TIOCSWINSZ]: Warning fix.
2003-01-23 Pavel Roskin <proski@gnu.org> 2003-01-23 Pavel Roskin <proski@gnu.org>

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

@ -283,15 +283,16 @@ slang_reset_softkeys (void)
{ {
int key; int key;
char *send; char *send;
static const char display [] = " "; static const char display[] = " ";
char tmp[BUF_SMALL]; char tmp[BUF_SMALL];
for ( key = 1; key < 9; key++ ) { for (key = 1; key < 9; key++) {
g_snprintf (tmp, sizeof (tmp), "k%d", key); g_snprintf (tmp, sizeof (tmp), "k%d", key);
send = (char *) SLtt_tgetstr (tmp); send = (char *) SLtt_tgetstr (tmp);
if (send) { if (send) {
g_snprintf(tmp, sizeof (tmp), "\033&f%dk%dd%dL%s%s", key, g_snprintf (tmp, sizeof (tmp), "\033&f%dk%dd%dL%s%s", key,
sizeof (display) - 1, strlen(send), display, send); (int) (sizeof (display) - 1), (int) strlen (send),
display, send);
SLtt_write_string (tmp); SLtt_write_string (tmp);
} }
} }