diff options
author | 2012-11-22 14:41:11 +0000 | |
---|---|---|
committer | 2012-11-22 14:41:11 +0000 | |
commit | 825609d46315b55ff3049beac091bfd223752277 (patch) | |
tree | c69f4d8383931b93fa5ec6b90f07130fd2ddc7df /usr.bin/tmux/tty-keys.c | |
parent | Instead of worrying about xterm version, send DA and read DEC service (diff) | |
download | wireguard-openbsd-825609d46315b55ff3049beac091bfd223752277.tar.xz wireguard-openbsd-825609d46315b55ff3049beac091bfd223752277.zip |
Put helper function back, will be needed in a bit.
Diffstat (limited to 'usr.bin/tmux/tty-keys.c')
-rw-r--r-- | usr.bin/tmux/tty-keys.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index 466bd80587c..c29a1c4b6e3 100644 --- a/usr.bin/tmux/tty-keys.c +++ b/usr.bin/tmux/tty-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.46 2012/11/22 14:26:04 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.47 2012/11/22 14:41:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -724,7 +724,7 @@ tty_keys_mouse(struct tty *tty, const char *buf, size_t len, size_t *size) int tty_keys_device(struct tty *tty, const char *buf, size_t len, size_t *size) { - u_int i, n; + u_int i, class; char tmp[64], *endptr; /* @@ -764,12 +764,12 @@ tty_keys_device(struct tty *tty, const char *buf, size_t len, size_t *size) return (0); /* Convert service class. */ - n = strtoul(tmp, &endptr, 10); + class = strtoul(tmp, &endptr, 10); if (*endptr != ';') - n = 0; + class = 0; - log_debug("received service class %u", n); - tty->service_class = n; + log_debug("received service class %u", class); + tty_set_class(tty, class); return (0); } |