From 3ece3d60f41b65470ec5ce6c9a0b830e32a84422 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 5 Apr 2010 18:06:04 +0200 Subject: rename mnl_attr_type_ok() by mnl_attr_type_valid() for consistency better to rename this function since its return value is not similar to other _ok() functions, for consistency. Signed-off-by: Pablo Neira Ayuso --- examples/rtnl-route-dump.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/rtnl-route-dump.c') diff --git a/examples/rtnl-route-dump.c b/examples/rtnl-route-dump.c index 0d89cae..4a0f790 100644 --- a/examples/rtnl-route-dump.c +++ b/examples/rtnl-route-dump.c @@ -12,8 +12,8 @@ static int data_attr_cb2(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, RTAX_MAX) < 0) { - perror("mnl_attr_type_ok"); + if (mnl_attr_type_valid(attr, RTAX_MAX) < 0) { + perror("mnl_attr_type_valid"); return MNL_CB_ERROR; } if (mnl_attr_validate(attr, MNL_TYPE_U32) < 0) { @@ -68,8 +68,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, RTA_MAX) < 0) { - perror("mnl_attr_type_ok"); + if (mnl_attr_type_valid(attr, RTA_MAX) < 0) { + perror("mnl_attr_type_valid"); return MNL_CB_ERROR; } -- cgit v1.2.3