summaryrefslogtreecommitdiffstats
path: root/tty-term.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-25 07:37:20 +0000
committernicm <nicm>2021-08-25 07:37:20 +0000
commitc6d6af49039d7fc3ec14c2240153226709497313 (patch)
tree0a402d60a1d1c0fae2ebfb5b7af97c53501d4184 /tty-term.c
parenta252fadf8a6df72e4a417de2668bffa971455193 (diff)
setupterm needs char * not const char * on some platforms.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty-term.c b/tty-term.c
index ae103fd7..b3d01850 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -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",