From 8bc402318be9f09b70cdb61d81799e90d8a64e7b Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 4 Apr 2010 16:29:58 +0200 Subject: 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 --- examples/rtnl-link-dump3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/rtnl-link-dump3.c') diff --git a/examples/rtnl-link-dump3.c b/examples/rtnl-link-dump3.c index ce59f9f..87a15a5 100644 --- a/examples/rtnl-link-dump3.c +++ b/examples/rtnl-link-dump3.c @@ -25,8 +25,8 @@ static int data_cb(const struct nlmsghdr *nlh, void *data) mnl_attr_for_each(attr, nlh, sizeof(*ifm)) { 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; } switch(type) { -- cgit v1.2.3