aboutsummaryrefslogtreecommitdiff
path: root/driver-ti.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver-ti.c')
-rw-r--r--driver-ti.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver-ti.c b/driver-ti.c
index 727cb78..952bf76 100644
--- a/driver-ti.c
+++ b/driver-ti.c
@@ -148,7 +148,9 @@ static void *new_driver(termkey_t *tk, const char *term)
{
int err;
- if(setupterm(term, 1, &err) != OK)
+ /* Have to cast away the const. But it's OK - we know terminfo won't really
+ * modify term */
+ if(setupterm((char*)term, 1, &err) != OK)
return NULL;
termkey_ti *ti = malloc(sizeof *ti);