summaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-06-29 18:01:18 +0100
committerThomas Adam <thomas@xteddy.org>2020-06-29 18:01:18 +0100
commita284664e718a6eb3cd5f0507331a183037c0d6dd (patch)
tree986e7acd69b8405c137f9df87d900aeef040b7cd /cmd.c
parent332aca754b96ae5f5f5dd0bb32e3d008ac735684 (diff)
parent2a9bdb700d07a5d0885c22a9e73deaf675ba20c2 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd.c b/cmd.c
index 7e7cac4d..775bdb73 100644
--- a/cmd.c
+++ b/cmd.c
@@ -597,12 +597,7 @@ cmd_list_append(struct cmd_list *cmdlist, struct cmd *cmd)
void
cmd_list_move(struct cmd_list *cmdlist, struct cmd_list *from)
{
- struct cmd *cmd, *cmd1;
-
- TAILQ_FOREACH_SAFE(cmd, from->list, qentry, cmd1) {
- TAILQ_REMOVE(from->list, cmd, qentry);
- TAILQ_INSERT_TAIL(cmdlist->list, cmd, qentry);
- }
+ TAILQ_CONCAT(cmdlist->list, from->list, qentry);
cmdlist->group = cmd_list_next_group++;
}