diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-07-01 19:47:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-07-01 19:47:02 +0000 |
commit | dd41035a4d71057108da8c7b5e1876cc02b4995c (patch) | |
tree | a8122ccd8c988b6a7e7645db1e8d7637e7992b1c /client.c | |
parent | 87b9851f3a125820e04844733f792350f5ae3e2c (diff) |
Protocol versioning, version is checked on identify message.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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'; |