summaryrefslogtreecommitdiffstats
path: root/tty-term.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2023-06-30 16:01:10 +0100
committerThomas Adam <thomas@xteddy.org>2023-06-30 16:01:10 +0100
commit237ee6f2311b351b8a3bb3b46e17622f6e3b6bb9 (patch)
treeb9c4298a78b4a85dfcb517a6648570a331ae5d17 /tty-term.c
parent8c9fbbf4f3baae95c0ec437108f39483ced815cb (diff)
parent4e57894e8506f27844fc0e6353475a0b61fd7807 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tty-term.c b/tty-term.c
index 7dbcfee7..e2242269 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -718,7 +718,7 @@ tty_term_read_list(const char *name, int fd, char ***caps, u_int *ncaps,
s = tmp;
break;
case TTYCODE_FLAG:
- n = tigetflag((char *) ent->name);
+ n = tigetflag((char *)ent->name);
if (n == -1)
continue;
if (n)
@@ -726,6 +726,8 @@ tty_term_read_list(const char *name, int fd, char ***caps, u_int *ncaps,
else
s = "0";
break;
+ default:
+ fatalx("unknown capability type");
}
*caps = xreallocarray(*caps, (*ncaps) + 1, sizeof **caps);
xasprintf(&(*caps)[*ncaps], "%s=%s", ent->name, s);