commit 5ddd1dad86765fe523fecd65b3c18f7d4f96b790
parent 9d4ba7fd73bc3a0b32d1fe859d0bd19af525a6f6
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 26 Feb 2014 18:52:08 -0800
data_offer: Use wl_resource_for_each
Accessing the resource link directly is deprecated.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswc/data.c b/libswc/data.c
@@ -113,7 +113,7 @@ static void data_destroy(struct wl_resource * source)
* data_offer, which would crash the server.
*
* So, we clear the user data on each of the offers to protect us. */
- wl_list_for_each(offer, &data->offers, link)
+ wl_resource_for_each(offer, &data->offers)
wl_resource_set_user_data(offer, NULL);
free(data);