summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/clientloop.c
diff options
context:
space:
mode:
authorandreas <andreas@openbsd.org>2009-05-25 06:48:00 +0000
committerandreas <andreas@openbsd.org>2009-05-25 06:48:00 +0000
commitbd3c504508ac4b88604ece841a0e247693eda854 (patch)
treed3981b3bac1d444afede78836bed2eafcdb9d0d0 /usr.bin/ssh/clientloop.c
parentAdd Dell Latitude E5500 to the mute quirk list. (diff)
downloadwireguard-openbsd-bd3c504508ac4b88604ece841a0e247693eda854.tar.xz
wireguard-openbsd-bd3c504508ac4b88604ece841a0e247693eda854.zip
Put the globals in packet.c into a struct and don't access it directly
from other files. No functional changes. ok markus@ djm@
Diffstat (limited to 'usr.bin/ssh/clientloop.c')
-rw-r--r--usr.bin/ssh/clientloop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c
index 23b2dea58bb..8a59902a1ac 100644
--- a/usr.bin/ssh/clientloop.c
+++ b/usr.bin/ssh/clientloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.209 2009/02/12 03:00:56 djm Exp $ */
+/* $OpenBSD: clientloop.c,v 1.210 2009/05/25 06:48:01 andreas Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -483,13 +483,13 @@ client_global_request_reply(int type, u_int32_t seq, void *ctxt)
xfree(gc);
}
- keep_alive_timeouts = 0;
+ packet_set_alive_timeouts(0);
}
static void
server_alive_check(void)
{
- if (++keep_alive_timeouts > options.server_alive_count_max) {
+ if (packet_inc_alive_timeouts() > options.server_alive_count_max) {
logit("Timeout, server not responding.");
cleanup_exit(255);
}