setupterm needs char * not const char * on some platforms.
authornicm <nicm@openbsd.org>
Wed, 25 Aug 2021 07:37:20 +0000 (07:37 +0000)
committernicm <nicm@openbsd.org>
Wed, 25 Aug 2021 07:37:20 +0000 (07:37 +0000)
usr.bin/tmux/tty-term.c

index ece706d..b105008 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty-term.c,v 1.90 2021/06/10 07:45:43 nicm Exp $ */
+/* $OpenBSD: tty-term.c,v 1.91 2021/08/25 07:37:20 nicm Exp $ */
 
 /*
  * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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",