]> andersk Git - openssh.git/commitdiff
- djm@cvs.openbsd.org 2008/07/16 11:51:14
authordjm <djm>
Wed, 16 Jul 2008 12:40:52 +0000 (12:40 +0000)
committerdjm <djm>
Wed, 16 Jul 2008 12:40:52 +0000 (12:40 +0000)
     [clientloop.c]
     rename variable first_gc -> last_gc (since it is actually the last
     in the list).

ChangeLog
clientloop.c

index 98c82e0481e2e4c7b2fb865b71f38a125afb6bdd..a41713f1faf42ac678f7dc5c5e8e2aa345f9e0a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@
      [sftp.1]
      number of pipelined requests is now 64;
      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
  - (djm) OpenBSD CVS Sync
index 5a8727eb904e3bb7873804a88495093eae147cef..f10fab7698cf6b1f4e1dbe90b25d483892c2a578 100644 (file)
@@ -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
@@ -741,14 +741,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;
        }
 
This page took 2.722725 seconds and 5 git commands to generate.