diff options
Diffstat (limited to 'examples/rtnl-link-dump2.c')
-rw-r--r-- | examples/rtnl-link-dump2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rtnl-link-dump2.c b/examples/rtnl-link-dump2.c index d333071..bd93f9d 100644 --- a/examples/rtnl-link-dump2.c +++ b/examples/rtnl-link-dump2.c @@ -9,8 +9,8 @@ static int data_attr_cb(const struct nlattr *attr, void *data) { - 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; } |