summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-06-06 00:25:47 +0000
committerTiago Cunha <tcunha@gmx.com>2010-06-06 00:25:47 +0000
commitbe3643fba09b18c0a6b1fc88c93833aca7cc0345 (patch)
tree7d5523a3d807f0469f855d53059d6331edc08143 /client.c
parentf62d3d22bb542e262ee961e5f3e2db33b963b4db (diff)
Sync OpenBSD patchset 713:
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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/client.c b/client.c
index 14248761..a51b200c 100644
--- a/client.c
+++ b/client.c
@@ -1,4 +1,4 @@
-/* $Id: client.c,v 1.92 2010-05-14 14:35:26 tcunha Exp $ */
+/* $Id: client.c,v 1.93 2010-06-06 00:25:47 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -17,7 +17,6 @@
*/
#include <sys/types.h>
-#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
@@ -119,12 +118,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)