Skip to content

Commit

Permalink
setupterm needs char * not const char * on some platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Aug 25, 2021
1 parent a252fad commit c6d6af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tty-term.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c6d6af4

Please sign in to comment.