Readd tparm unconst-cast

Fixes the build on NetBSD.

CC @ridiculousfish.
This commit is contained in:
Fabian Homborg 2019-02-25 22:17:56 +01:00
parent 92b1f4df07
commit c66015c2c1

View File

@ -296,7 +296,8 @@ void outputter_t::set_color(rgb_color_t c, rgb_color_t c2) {
// Lastly, we set bold, underline, italics, dim, and reverse modes correctly.
if (is_bold && !was_bold && enter_bold_mode && strlen(enter_bold_mode) > 0 && !bg_set) {
writembs_nofail(*this, tparm(enter_bold_mode));
// The unconst cast is for NetBSD's benefit. DO NOT REMOVE!
writembs_nofail(*this, tparm((char *)enter_bold_mode));
was_bold = is_bold;
}