From: Karel Zak Date: Mon, 23 Jul 2018 09:45:15 +0000 (+0200) Subject: setterm: fix compiler warnings [-Wcast-qual] X-Git-Tag: v2.33-rc1~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df3bc05a7f39e66ee596bbd4e4641598e65105bf;p=thirdparty%2Futil-linux.git setterm: fix compiler warnings [-Wcast-qual] Signed-off-by: Karel Zak --- diff --git a/term-utils/setterm.c b/term-utils/setterm.c index f20a5e6987..bb13eb3c74 100644 --- a/term-utils/setterm.c +++ b/term-utils/setterm.c @@ -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; }