commit 5ddd1da
Michael Forney
·
2014-02-27 02:52:08 +0000 UTC
parent 9d4ba7f
data_offer: Use wl_resource_for_each Accessing the resource link directly is deprecated.
1 files changed,
+1,
-1
+1,
-1
1@@ -113,7 +113,7 @@ static void data_destroy(struct wl_resource * source)
2 * data_offer, which would crash the server.
3 *
4 * So, we clear the user data on each of the offers to protect us. */
5- wl_list_for_each(offer, &data->offers, link)
6+ wl_resource_for_each(offer, &data->offers)
7 wl_resource_set_user_data(offer, NULL);
8
9 free(data);