From: Yu Watanabe Date: Tue, 29 Sep 2020 07:12:17 +0000 (+0900) Subject: sd-netlink: fix typo and make netlink_add_match() take description X-Git-Tag: v247-rc1~117^2~128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d65f7c8630714b51420ee6caa9fc17714fae92c;p=thirdparty%2Fsystemd.git sd-netlink: fix typo and make netlink_add_match() take description --- diff --git a/src/libsystemd/sd-netlink/netlink-util.h b/src/libsystemd/sd-netlink/netlink-util.h index ddf5686f134..8e99cd451dc 100644 --- a/src/libsystemd/sd-netlink/netlink-util.h +++ b/src/libsystemd/sd-netlink/netlink-util.h @@ -77,14 +77,14 @@ int rtnl_log_create_error(int r); userdata, 0, __func__); \ }) -#define netlink_add_match(nl, ret_slot, metch, callback, destroy_callback, userdata) \ +#define netlink_add_match(nl, ret_slot, match, callback, destroy_callback, userdata, description) \ ({ \ int (*_callback_)(sd_netlink *, sd_netlink_message *, typeof(userdata)) = callback; \ void (*_destroy_)(typeof(userdata)) = destroy_callback; \ sd_netlink_add_match(nl, ret_slot, match, \ (sd_netlink_message_handler_t) _callback_, \ (sd_netlink_destroy_t) _destroy_, \ - userdata, __func__); \ + userdata, description); \ }) int netlink_message_append_in_addr_union(sd_netlink_message *m, unsigned short type, int family, const union in_addr_union *data);