setupterm needs char * not const char * on some platforms.

pull/2873/head
nicm 2021-08-25 07:37:20 +00:00
parent a252fadf8a
commit c6d6af4903
1 changed files with 1 additions and 1 deletions

View File

@ -661,7 +661,7 @@ tty_term_read_list(const char *name, int fd, char ***caps, u_int *ncaps,
const char *s;
char tmp[11];
if (setupterm(name, fd, &error) != OK) {
if (setupterm((char *)name, fd, &error) != OK) {
switch (error) {
case 1:
xasprintf(cause, "can't use hardcopy terminal: %s",