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 /src | |
parent | bd00b928e678b3ede5dbc5abc933539fe5cc31e6 (diff) | |
download | libmnl-8bc402318be9f09b70cdb61d81799e90d8a64e7b.tar.gz libmnl-8bc402318be9f09b70cdb61d81799e90d8a64e7b.zip |
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 'src')
-rw-r--r-- | src/attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |