setterm: fix compiler warnings [-Wcast-qual]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2018-07-23 11:45:15 +02:00
parent 58bc493243
commit df3bc05a7f
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@ static char *ti_entry(const char *name)
{
char *buf_ptr;
if ((buf_ptr = tigetstr((char *)name)) == (char *)-1)
if ((buf_ptr = tigetstr(name)) == (char *)-1)
buf_ptr = NULL;
return buf_ptr;
}