diff options
Diffstat (limited to 'examples/rtnl-link-event.c')
-rw-r--r-- | examples/rtnl-link-event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rtnl-link-event.c b/examples/rtnl-link-event.c index bba59cd..c3600ca 100644 --- a/examples/rtnl-link-event.c +++ b/examples/rtnl-link-event.c @@ -12,8 +12,8 @@ static int data_attr_cb(const struct nlattr *attr, void *data) const struct nlattr **tb = (const struct nlattr **)data; int type = mnl_attr_get_type(attr); - if (mnl_attr_type_ok(attr, IFLA_MAX) < 0) { - perror("mnl_attr_type_ok"); + if (mnl_attr_type_valid(attr, IFLA_MAX) < 0) { + perror("mnl_attr_type_valid"); return MNL_CB_ERROR; } |