* 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>
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user