From 3f5d035defc4171101ff5ffa21eda66bd94eb844 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 5 Jun 2010 16:29:46 +0000 Subject: This ioctl(TIOCGWINSZ) call is no longer necessary, the result is never used and the server now does it later on the tty fd directly. --- usr.bin/tmux/client.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/usr.bin/tmux/client.c b/usr.bin/tmux/client.c index 3054b640789..8fd03ac6f49 100644 --- a/usr.bin/tmux/client.c +++ b/usr.bin/tmux/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.39 2010/05/12 15:05:39 jsing Exp $ */ +/* $OpenBSD: client.c,v 1.40 2010/06/05 16:29:45 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -17,7 +17,6 @@ */ #include -#include #include #include #include @@ -115,12 +114,9 @@ void client_send_identify(int flags) { struct msg_identify_data data; - struct winsize ws; char *term; int fd; - if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == -1) - fatal("ioctl(TIOCGWINSZ)"); data.flags = flags; if (getcwd(data.cwd, sizeof data.cwd) == NULL) -- cgit v1.2.3