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 --- src/attr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/attr.c') diff --git a/src/attr.c b/src/attr.c index f0828c0..75c856b 100644 --- a/src/attr.c +++ b/src/attr.c @@ -96,7 +96,7 @@ struct nlattr *mnl_attr_next(const struct nlattr *attr, int *len) } /** - * mnl_attr_type_invalid - check if the attribute type is valid + * mnl_attr_type_ok - check if the attribute type is valid * @attr: pointer to attribute to be checked * @max: maximum attribute type * @@ -104,7 +104,7 @@ struct nlattr *mnl_attr_next(const struct nlattr *attr, int *len) * maximum supported type. If the attribute type is invalid, this function * returns -1 and errno is explicitly set. */ -int mnl_attr_type_invalid(const struct nlattr *attr, int max) +int mnl_attr_type_ok(const struct nlattr *attr, int max) { if (mnl_attr_get_type(attr) > max) { errno = EINVAL; -- cgit v1.2.3