aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-10-31 10:17:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-10-31 10:17:00 +0000
commit0271e377c03f451f200548dfd2ec2746bd062665 (patch)
treea81d3f1f4b1a71286281a9dd4d8949a8813a3528 /terminal.c
parentselection: dnd: fix wl_data_offer_destroy() race (diff)
parenttiocswinsz: fix compilation error on e.g. ppc64 (diff)
Merge branch 'silence-tiocswinsz-conversion-warning'
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 303a4015..b9e4528a 100644
--- a/terminal.c
+++ b/terminal.c
@@ -928,7 +928,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
goto close_fds;
}
- if (ioctl(ptmx, TIOCSWINSZ,
+ if (ioctl(ptmx, (unsigned int)TIOCSWINSZ,
&(struct winsize){.ws_row = 24, .ws_col = 80}) < 0)
{
LOG_ERRNO("failed to set initial TIOCSWINSZ");