watchlist: Pass item pointer to match function

In WATCHLIST_NOTIFY_MATCHES pass pointer to the item instead of
item->notify_data to free item->notify_data to be the final watch user's
user_data.  This is also what netdev expects.
This commit is contained in:
Andrew Zaborowski 2017-09-07 23:04:43 +02:00 committed by Denis Kenzior
parent 70518fad5f
commit f2c4969fc9
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ void __watchlist_prune_stale(struct watchlist *watchlist);
struct watchlist_item *item = entry->data; \
type t = item->notify; \
\
if (!match(item->notify_data, match_data)) \
if (!match(item, match_data)) \
continue; \
\
t(args, item->notify_data); \