summaryrefslogtreecommitdiff
path: root/ssh-keyscan.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-21 00:09:54 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-21 00:09:54 +0000
commit61c183bea34f06a14458d9102a6365132c0396db (patch)
tree6026156131b4b8986b71570d4918af08c18bc763 /ssh-keyscan.c
parent2b266b7f083e969cba04a035eba46a6d96c0c1e3 (diff)
- itojun@cvs.openbsd.org 2002/06/16 21:30:58
[ssh-keyscan.c] use TAILQ_xx macro. from lukem@netbsd. markus ok
Diffstat (limited to 'ssh-keyscan.c')
-rw-r--r--ssh-keyscan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ssh-keyscan.c b/ssh-keyscan.c
index 744f80249..333a38e34 100644
--- a/ssh-keyscan.c
+++ b/ssh-keyscan.c
@@ -7,7 +7,7 @@
7 */ 7 */
8 8
9#include "includes.h" 9#include "includes.h"
10RCSID("$OpenBSD: ssh-keyscan.c,v 1.35 2002/03/04 18:30:23 stevesk Exp $"); 10RCSID("$OpenBSD: ssh-keyscan.c,v 1.36 2002/06/16 21:30:58 itojun Exp $");
11 11
12#include "openbsd-compat/fake-queue.h" 12#include "openbsd-compat/fake-queue.h"
13 13
@@ -600,7 +600,7 @@ conloop(void)
600 con *c; 600 con *c;
601 601
602 gettimeofday(&now, NULL); 602 gettimeofday(&now, NULL);
603 c = tq.tqh_first; 603 c = TAILQ_FIRST(&tq);
604 604
605 if (c && (c->c_tv.tv_sec > now.tv_sec || 605 if (c && (c->c_tv.tv_sec > now.tv_sec ||
606 (c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec > now.tv_usec))) { 606 (c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec > now.tv_usec))) {
@@ -633,12 +633,12 @@ conloop(void)
633 xfree(r); 633 xfree(r);
634 xfree(e); 634 xfree(e);
635 635
636 c = tq.tqh_first; 636 c = TAILQ_FIRST(&tq);
637 while (c && (c->c_tv.tv_sec < now.tv_sec || 637 while (c && (c->c_tv.tv_sec < now.tv_sec ||
638 (c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec < now.tv_usec))) { 638 (c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec < now.tv_usec))) {
639 int s = c->c_fd; 639 int s = c->c_fd;
640 640
641 c = c->c_link.tqe_next; 641 c = TAILQ_NEXT(c, c_link);
642 conrecycle(s); 642 conrecycle(s);
643 } 643 }
644} 644}