]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setterm: fix compiler warnings [-Wcast-qual]
authorKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2018 09:45:15 +0000 (11:45 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2018 09:45:15 +0000 (11:45 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/setterm.c

index f20a5e6987a0f9ebc16e0cdc8e57fdefa5396fac..bb13eb3c74ca7768a565c44d5d34eb7c9189585f 100644 (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;
 }