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-dump3.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-dump3.c')
-rw-r--r-- | examples/rtnl-link-dump3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rtnl-link-dump3.c b/examples/rtnl-link-dump3.c index 87a15a5..6da62ad 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_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; } switch(type) { |