- djm@cvs.openbsd.org 2008/07/16 11:51:14
[clientloop.c] rename variable first_gc -> last_gc (since it is actually the last in the list).
This commit is contained in:
parent
94717b0be1
commit
b9d3bee003
|
@ -4,6 +4,10 @@
|
||||||
[sftp.1]
|
[sftp.1]
|
||||||
number of pipelined requests is now 64;
|
number of pipelined requests is now 64;
|
||||||
prodded by Iain.Morgan AT nasa.gov
|
prodded by Iain.Morgan AT nasa.gov
|
||||||
|
- djm@cvs.openbsd.org 2008/07/16 11:51:14
|
||||||
|
[clientloop.c]
|
||||||
|
rename variable first_gc -> last_gc (since it is actually the last
|
||||||
|
in the list).
|
||||||
|
|
||||||
20080714
|
20080714
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
|
@ -4677,4 +4681,4 @@
|
||||||
OpenServer 6 and add osr5bigcrypt support so when someone migrates
|
OpenServer 6 and add osr5bigcrypt support so when someone migrates
|
||||||
passwords between UnixWare and OpenServer they will still work. OK dtucker@
|
passwords between UnixWare and OpenServer they will still work. OK dtucker@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.5085 2008/07/16 11:17:23 djm Exp $
|
$Id: ChangeLog,v 1.5086 2008/07/16 12:40:52 djm Exp $
|
||||||
|
|
14
clientloop.c
14
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>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
|
@ -741,14 +741,14 @@ client_expect_confirm(int id, const char *request, int do_close)
|
||||||
void
|
void
|
||||||
client_register_global_confirm(global_confirm_cb *cb, void *ctx)
|
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 */
|
/* Coalesce identical callbacks */
|
||||||
first_gc = TAILQ_LAST(&global_confirms, global_confirms);
|
last_gc = TAILQ_LAST(&global_confirms, global_confirms);
|
||||||
if (first_gc && first_gc->cb == cb && first_gc->ctx == ctx) {
|
if (last_gc && last_gc->cb == cb && last_gc->ctx == ctx) {
|
||||||
if (++first_gc->ref_count >= INT_MAX)
|
if (++last_gc->ref_count >= INT_MAX)
|
||||||
fatal("%s: first_gc->ref_count = %d",
|
fatal("%s: last_gc->ref_count = %d",
|
||||||
__func__, first_gc->ref_count);
|
__func__, last_gc->ref_count);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue