summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2008-07-16 11:51:14 +0000
committerdjm <djm@openbsd.org>2008-07-16 11:51:14 +0000
commite60d85f258da8a5ff51a312c4a06f33437c8b26c (patch)
treec7211d618faee8f357b8c88070e51da48b6015ea /usr.bin/ssh
parentDynamically allocate fd_sets so we are not limited to FD_SETSIZE (diff)
downloadwireguard-openbsd-e60d85f258da8a5ff51a312c4a06f33437c8b26c.tar.xz
wireguard-openbsd-e60d85f258da8a5ff51a312c4a06f33437c8b26c.zip
rename variable first_gc -> last_gc (since it is actually the last
in the list).
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/clientloop.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c
index 28a138dee1f..470985cbaac 100644
--- a/usr.bin/ssh/clientloop.c
+++ b/usr.bin/ssh/clientloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.200 2008/07/10 18:08:11 markus Exp $ */
+/* $OpenBSD: clientloop.c,v 1.201 2008/07/16 11:51:14 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -732,14 +732,14 @@ client_expect_confirm(int id, const char *request, int do_close)
void
client_register_global_confirm(global_confirm_cb *cb, void *ctx)
{
- struct global_confirm *gc, *first_gc;
+ struct global_confirm *gc, *last_gc;
/* Coalesce identical callbacks */
- first_gc = TAILQ_LAST(&global_confirms, global_confirms);
- if (first_gc && first_gc->cb == cb && first_gc->ctx == ctx) {
- if (++first_gc->ref_count >= INT_MAX)
- fatal("%s: first_gc->ref_count = %d",
- __func__, first_gc->ref_count);
+ last_gc = TAILQ_LAST(&global_confirms, global_confirms);
+ if (last_gc && last_gc->cb == cb && last_gc->ctx == ctx) {
+ if (++last_gc->ref_count >= INT_MAX)
+ fatal("%s: last_gc->ref_count = %d",
+ __func__, last_gc->ref_count);
return;
}