summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-06-05 16:29:46 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-06-05 16:29:46 +0000
commit3f5d035defc4171101ff5ffa21eda66bd94eb844 (patch)
tree7a9fa31e0c1315d1fcfcf95a292ae5319b8bf2ed /usr.bin
parent775538e2b8f514c9ffe093ed4cb7af89da0490b2 (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 'usr.bin')
-rw-r--r--usr.bin/tmux/client.c6
1 files changed, 1 insertions, 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 <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>
@@ -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)