summaryrefslogtreecommitdiff
path: root/kern/plist.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/plist.c')
-rw-r--r--kern/plist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/plist.c b/kern/plist.c
index 851de629..6a5417fe 100644
--- a/kern/plist.c
+++ b/kern/plist.c
@@ -37,12 +37,12 @@ plist_add(struct plist *plist, struct plist_node *pnode)
if (list_end(&plist->prio_list, &next->prio_node)
|| (pnode->priority != next->priority)) {
- list_insert_before(&next->prio_node, &pnode->prio_node);
+ list_insert_before(&pnode->prio_node, &next->prio_node);
} else {
list_init(&pnode->prio_node);
}
- list_insert_before(&next->node, &pnode->node);
+ list_insert_before(&pnode->node, &next->node);
}
void