diff options
author | bket <bket@cvs.openbsd.org> | 2020-01-28 15:44:14 +0000 |
---|---|---|
committer | bket <bket@cvs.openbsd.org> | 2020-01-28 15:44:14 +0000 |
commit | d4cee8755b2be287089ce60a2cb338985f4e6c5e (patch) | |
tree | a3999831826b37650e9a317a2f580ef8f6911325 /sbin/unwind/resolver.c | |
parent | 4a61cceff66183fea8ed2ffb194ce4d1ce0ace2c (diff) |
sbin/unwind: replace TAILQ concatenation loop with TAILQ_CONCAT
OK florian@. reads ok benno@
Diffstat (limited to 'sbin/unwind/resolver.c')
-rw-r--r-- | sbin/unwind/resolver.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sbin/unwind/resolver.c b/sbin/unwind/resolver.c index 15d2c90b1e8..14239ed3a6a 100644 --- a/sbin/unwind/resolver.c +++ b/sbin/unwind/resolver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resolver.c,v 1.120 2020/01/20 20:41:43 florian Exp $ */ +/* $OpenBSD: resolver.c,v 1.121 2020/01/28 15:44:13 bket Exp $ */ /* * Copyright (c) 2018 Florian Obser <florian@openbsd.org> @@ -1650,10 +1650,7 @@ replace_forwarders(struct uw_forwarder_head *new_list, struct free(uw_forwarder); } - while ((uw_forwarder = TAILQ_FIRST(new_list)) != NULL) { - TAILQ_REMOVE(new_list, uw_forwarder, entry); - TAILQ_INSERT_TAIL(old_list, uw_forwarder, entry); - } + TAILQ_CONCAT(old_list, new_list, entry); } int |