summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-07-01 19:47:02 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-07-01 19:47:02 +0000
commitdd41035a4d71057108da8c7b5e1876cc02b4995c (patch)
treea8122ccd8c988b6a7e7645db1e8d7637e7992b1c /client.c
parent87b9851f3a125820e04844733f792350f5ae3e2c (diff)
Protocol versioning, version is checked on identify message.
Diffstat (limited to 'client.c')
-rw-r--r--client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client.c b/client.c
index 308c1067..a55b8e22 100644
--- a/client.c
+++ b/client.c
@@ -1,4 +1,4 @@
-/* $Id: client.c,v 1.33 2008-06-23 16:58:49 nicm Exp $ */
+/* $Id: client.c,v 1.34 2008-07-01 19:47:02 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -93,6 +93,7 @@ retry:
if (isatty(STDIN_FILENO)) {
if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == -1)
fatal("ioctl(TIOCGWINSZ)");
+ data.version = PROTOCOL_VERSION;
data.sx = ws.ws_col;
data.sy = ws.ws_row;
*data.tty = '\0';