* slint.c (slang_reset_softkeys): Cast arguments from size_t to
int to avoid a warning on 64-bit systems.
Этот коммит содержится в:
родитель
e606c7bf78
Коммит
8be1c7add5
@ -1,5 +1,8 @@
|
||||
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.
|
||||
|
||||
2003-01-23 Pavel Roskin <proski@gnu.org>
|
||||
|
13
src/slint.c
13
src/slint.c
@ -283,16 +283,17 @@ slang_reset_softkeys (void)
|
||||
{
|
||||
int key;
|
||||
char *send;
|
||||
static const char display [] = " ";
|
||||
static const char display[] = " ";
|
||||
char tmp[BUF_SMALL];
|
||||
|
||||
for ( key = 1; key < 9; key++ ) {
|
||||
|
||||
for (key = 1; key < 9; key++) {
|
||||
g_snprintf (tmp, sizeof (tmp), "k%d", key);
|
||||
send = (char *) SLtt_tgetstr (tmp);
|
||||
if (send) {
|
||||
g_snprintf(tmp, sizeof (tmp), "\033&f%dk%dd%dL%s%s", key,
|
||||
sizeof (display) - 1, strlen(send), display, send);
|
||||
SLtt_write_string (tmp);
|
||||
g_snprintf (tmp, sizeof (tmp), "\033&f%dk%dd%dL%s%s", key,
|
||||
(int) (sizeof (display) - 1), (int) strlen (send),
|
||||
display, send);
|
||||
SLtt_write_string (tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user