summaryrefslogtreecommitdiffstats
path: root/examples/rtnl-link-dump.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-04-04 16:29:58 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-04-04 16:29:58 +0200
commit8bc402318be9f09b70cdb61d81799e90d8a64e7b (patch)
tree6eebf08f463f15d87c6a151b4cc43969588a3b70 /examples/rtnl-link-dump.c
parentbd00b928e678b3ede5dbc5abc933539fe5cc31e6 (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-dump.c')
-rw-r--r--examples/rtnl-link-dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rtnl-link-dump.c b/examples/rtnl-link-dump.c
index 42843aa..b0c8e76 100644
--- a/examples/rtnl-link-dump.c
+++ b/examples/rtnl-link-dump.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_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;
}