diff options
author | markj <markj@FreeBSD.org> | 2016-02-22 20:20:10 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2016-02-22 20:20:10 +0000 |
commit | 59f8276e61283809ceab664a7b1b1515e96806f7 (patch) | |
tree | 19289431f6139802f297fb82838543c8b356cbea /usr.sbin | |
parent | 8c646bef996ac776439673158c28a92d047dd03a (diff) | |
download | FreeBSD-src-59f8276e61283809ceab664a7b1b1515e96806f7.zip FreeBSD-src-59f8276e61283809ceab664a7b1b1515e96806f7.tar.gz |
MFC r295737:
Use the _SAFE loop variant.
PR: 207146
Approved by: re (gjb, glebius)
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rtsold/rtsold.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rtsold/rtsold.c b/usr.sbin/rtsold/rtsold.c index 7710537..238a1e1 100644 --- a/usr.sbin/rtsold/rtsold.c +++ b/usr.sbin/rtsold/rtsold.c @@ -609,7 +609,7 @@ rtsol_check_timer(void) struct timespec now, rtsol_timer; struct ifinfo *ifi; struct rainfo *rai; - struct ra_opt *rao; + struct ra_opt *rao, *raotmp; int flags; clock_gettime(CLOCK_MONOTONIC_FAST, &now); @@ -704,7 +704,8 @@ rtsol_check_timer(void) int expire = 0; TAILQ_FOREACH(rai, &ifi->ifi_rainfo, rai_next) { - TAILQ_FOREACH(rao, &rai->rai_ra_opt, rao_next) { + TAILQ_FOREACH_SAFE(rao, &rai->rai_ra_opt, + rao_next, raotmp) { warnmsg(LOG_DEBUG, __func__, "RA expiration timer: " "type=%d, msg=%s, expire=%s", |