From 9b7a12d90aa914db859044d0fd96369d7b9340c9 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 3 Aug 2020 02:12:47 +0200 Subject: seat: Convert device list to linked list --- seatd/client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'seatd/client.c') diff --git a/seatd/client.c b/seatd/client.c index 5ec80ae..ed018db 100644 --- a/seatd/client.c +++ b/seatd/client.c @@ -15,6 +15,7 @@ #endif #include "client.h" +#include "linked_list.h" #include "log.h" #include "poller.h" #include "protocol.h" @@ -67,7 +68,7 @@ struct client *client_create(struct server *server, int client_fd) { client->pid = pid; client->server = server; client->connection.fd = client_fd; - list_init(&client->devices); + linked_list_init(&client->devices); return client; } @@ -102,8 +103,7 @@ void client_destroy(struct client *client) { client->connection.fd = -1; } connection_close_fds(&client->connection); - assert(client->devices.length == 0); - list_free(&client->devices); + assert(linked_list_empty(&client->devices)); free(client); } -- cgit v1.2.3