diff options
author | 2002-06-16 21:30:58 +0000 | |
---|---|---|
committer | 2002-06-16 21:30:58 +0000 | |
commit | 3afb82c48de8c1907e5ce8eb6ca275326340aa17 (patch) | |
tree | f38e804c5fa1180a6214e9e5af4a693ee94b3ca4 /usr.bin/ssh/ssh-keyscan.c | |
parent | Increase XL_TIMEOUT from 1000 -> 2000. No longer get those pesky "command (diff) | |
download | wireguard-openbsd-3afb82c48de8c1907e5ce8eb6ca275326340aa17.tar.xz wireguard-openbsd-3afb82c48de8c1907e5ce8eb6ca275326340aa17.zip |
use TAILQ_xx macro. from lukem@netbsd. markus ok
Diffstat (limited to 'usr.bin/ssh/ssh-keyscan.c')
-rw-r--r-- | usr.bin/ssh/ssh-keyscan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/ssh-keyscan.c b/usr.bin/ssh/ssh-keyscan.c index 5fc53307c3e..947f704e547 100644 --- a/usr.bin/ssh/ssh-keyscan.c +++ b/usr.bin/ssh/ssh-keyscan.c @@ -7,7 +7,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-keyscan.c,v 1.35 2002/03/04 18:30:23 stevesk Exp $"); +RCSID("$OpenBSD: ssh-keyscan.c,v 1.36 2002/06/16 21:30:58 itojun Exp $"); #include <sys/queue.h> #include <errno.h> @@ -581,7 +581,7 @@ conloop(void) con *c; gettimeofday(&now, NULL); - c = tq.tqh_first; + c = TAILQ_FIRST(&tq); if (c && (c->c_tv.tv_sec > now.tv_sec || (c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec > now.tv_usec))) { @@ -614,12 +614,12 @@ conloop(void) xfree(r); xfree(e); - c = tq.tqh_first; + c = TAILQ_FIRST(&tq); while (c && (c->c_tv.tv_sec < now.tv_sec || (c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec < now.tv_usec))) { int s = c->c_fd; - c = c->c_link.tqe_next; + c = TAILQ_NEXT(c, c_link); conrecycle(s); } } |