summaryrefslogtreecommitdiff
path: root/include/libmnl
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-11-11 13:57:57 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2010-11-11 13:57:57 +0100
commit895839909804d91f6e897bef1c1e32c0b0a9db94 (patch)
tree69c638314836fd609cca9dfdbb771d2ab0f20dc9 /include/libmnl
parent184d6ab767d6432a506ea00ae33ba7e054712786 (diff)
downloadlibmnl-895839909804d91f6e897bef1c1e32c0b0a9db94.tar.gz
libmnl-895839909804d91f6e897bef1c1e32c0b0a9db94.zip
nlmsg: use bool for mnl_nlmsg_ok()
Signed-off-by: Jan Engelhardt <jengelh@medozas.de> 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 74662d3..c4806d5 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -49,7 +49,7 @@ extern struct nlmsghdr *mnl_nlmsg_put_header(void *buf);
extern void *mnl_nlmsg_put_extra_header(struct nlmsghdr *nlh, size_t size);
/* Netlink message iterators */
-extern int mnl_nlmsg_ok(const struct nlmsghdr *nlh, int len);
+extern bool mnl_nlmsg_ok(const struct nlmsghdr *nlh, int len);
extern struct nlmsghdr *mnl_nlmsg_next(const struct nlmsghdr *nlh, int *len);
/* Netlink sequence tracking */
@@ -118,7 +118,7 @@ extern int mnl_attr_validate(const struct nlattr *attr, enum mnl_attr_data_type
extern int mnl_attr_validate2(const struct nlattr *attr, enum mnl_attr_data_type type, size_t len);
/* TLV iterators */
-extern int mnl_attr_ok(const struct nlattr *attr, int len);
+extern bool mnl_attr_ok(const struct nlattr *attr, int len);
extern struct nlattr *mnl_attr_next(const struct nlattr *attr, int *len);
#define mnl_attr_for_each(attr, nlh, offset) \