From b97d3f2a82878cedae69c99193ae2884e2fd995c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 3 Apr 2019 11:46:04 -0500 Subject: [PATCH] eapol: Use l_container_of --- src/eapol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eapol.c b/src/eapol.c index 10d3b1ac..2345c8bf 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -729,7 +729,7 @@ struct eapol_frame_watch { static void eapol_frame_watch_free(struct watchlist_item *item) { struct eapol_frame_watch *efw = - container_of(item, struct eapol_frame_watch, super); + l_container_of(item, struct eapol_frame_watch, super); l_free(efw); } @@ -2475,7 +2475,7 @@ void eapol_preauth_cancel(uint32_t ifindex) static bool eapol_frame_watch_match_ifindex(const void *a, const void *b) { struct eapol_frame_watch *efw = - container_of(a, struct eapol_frame_watch, super); + l_container_of(a, struct eapol_frame_watch, super); return efw->ifindex == L_PTR_TO_UINT(b); }