diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-04 16:29:58 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-04 16:29:58 +0200 |
commit | 8bc402318be9f09b70cdb61d81799e90d8a64e7b (patch) | |
tree | 6eebf08f463f15d87c6a151b4cc43969588a3b70 /examples/rtnl-link-dump2.c | |
parent | bd00b928e678b3ede5dbc5abc933539fe5cc31e6 (diff) |
rename mnl_attr_type_invalid() by mnl_attr_type_ok()
And include the prototype in libmnl.h, since it was missing
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
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 3c62006..d333071 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_invalid(attr, IFLA_MAX) < 0) { - perror("mnl_attr_type_invalid"); + if (mnl_attr_type_ok(attr, IFLA_MAX) < 0) { + perror("mnl_attr_type_ok"); return MNL_CB_ERROR; } |