linked_list: linked_list_take should concat lists
This commit is contained in:
parent
d75b617faf
commit
bbfb770c73
3 changed files with 32 additions and 5 deletions
|
@ -205,6 +205,7 @@ static int queue_event(struct backend_seatd *backend, int opcode) {
|
|||
|
||||
static void execute_events(struct backend_seatd *backend) {
|
||||
struct linked_list list;
|
||||
linked_list_init(&list);
|
||||
linked_list_take(&list, &backend->pending_events);
|
||||
while (!linked_list_empty(&list)) {
|
||||
struct pending_event *ev = (struct pending_event *)list.next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue