summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-06-05 16:29:45 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-06-05 16:29:45 +0000
commit36c0871c2380165fc018ec085f8c8352deffa6f3 (patch)
treecbf1ac16a9bfc532ec6ef69928b7ab52f1aa7843 /client.c
parentb88ec14f0ee93e5134e33034ac93b2229bcc8beb (diff)
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.
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/client.c b/client.c
index 092ae555..326ca100 100644
--- a/client.c
+++ b/client.c
@@ -17,7 +17,6 @@
*/
#include <sys/types.h>
-#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
@@ -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)