diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-05 18:06:04 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-05 18:06:04 +0200 |
commit | 3ece3d60f41b65470ec5ce6c9a0b830e32a84422 (patch) | |
tree | c4c110ccb2b6de6232a436f49c3a042fe97b3711 /examples/rtnl-link-dump2.c | |
parent | 73661922bc3b7ebf1225d8273147ab4a87757008 (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'examples/rtnl-link-dump2.c')
-rw-r--r-- | examples/rtnl-link-dump2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rtnl-link-dump2.c b/examples/rtnl-link-dump2.c index d333071..bd93f9d 100644 --- a/examples/rtnl-link-dump2.c +++ b/examples/rtnl-link-dump2.c @@ -9,8 +9,8 @@ static int data_attr_cb(const struct nlattr *attr, void *data) { - if (mnl_attr_type_ok(attr, IFLA_MAX) < 0) { - perror("mnl_attr_type_ok"); + if (mnl_attr_type_valid(attr, IFLA_MAX) < 0) { + perror("mnl_attr_type_valid"); return MNL_CB_ERROR; } |