summaryrefslogtreecommitdiff
path: root/include/libmnl
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2010-04-16 16:41:09 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-04-16 16:41:09 +0200
commit4d2a25dafdb3fcc73226af155fd0a71f551fae7d (patch)
treee20840fc111095393e48d2552c04054cc35a9776 /include/libmnl
parentc73e0bdf363163a2515efee05ea09f8f63172deb (diff)
downloadlibmnl-4d2a25dafdb3fcc73226af155fd0a71f551fae7d.tar.gz
libmnl-4d2a25dafdb3fcc73226af155fd0a71f551fae7d.zip
fix for mnl_attr_for_each_nested()
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libmnl')
-rw-r--r--include/libmnl/libmnl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h
index afb298a..259ddc2 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -118,9 +118,9 @@ extern struct nlattr *mnl_attr_next(const struct nlattr *attr, int *len);
#define mnl_attr_for_each_nested(attr, nest) \
int __len__ = mnl_attr_get_len(nest); \
- for (pos = mnl_attr_get_payload(nest); \
+ for (attr = mnl_attr_get_payload(nest); \
mnl_attr_ok(attr, __len__); \
- pos = mnl_attr_next(attr, &(__len__)))
+ attr = mnl_attr_next(attr, &(__len__)))
/* TLV callback-based attribute parsers */
typedef int (*mnl_attr_cb_t)(const struct nlattr *attr, void *data);