summaryrefslogtreecommitdiff
path: root/include/libmnl/libmnl.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-05-17 17:43:33 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-05-17 17:43:33 +0200
commitff088fc0d88ef97fe9559880643def6fe40ae086 (patch)
tree7900bac0bc5ebf18d7030f66c3d01b277f115516 /include/libmnl/libmnl.h
parente87d216e3dcb09500cb78b5a8d39da7d44abb0d6 (diff)
downloadlibmnl-ff088fc0d88ef97fe9559880643def6fe40ae086.tar.gz
nlmsg: use size_t instead of int for several input parameters
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libmnl/libmnl.h')
-rw-r--r--include/libmnl/libmnl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h
index d4bb7ed..8c3815d 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -34,13 +34,13 @@ extern int mnl_socket_getsockopt(const struct mnl_socket *nl, int type, void *bu
#define MNL_ALIGN(len) (((len)+MNL_ALIGNTO-1) & ~(MNL_ALIGNTO-1))
#define MNL_NLMSG_HDRLEN MNL_ALIGN(sizeof(struct nlmsghdr))
-extern size_t mnl_nlmsg_size(int len);
-extern size_t mnl_nlmsg_total_size(int len);
+extern size_t mnl_nlmsg_size(size_t len);
+extern size_t mnl_nlmsg_total_size(size_t len);
extern size_t mnl_nlmsg_get_payload_len(const struct nlmsghdr *nlh);
/* Netlink message header builder */
extern struct nlmsghdr *mnl_nlmsg_put_header(void *buf);
-extern void *mnl_nlmsg_put_extra_header(struct nlmsghdr *nlh, int size);
+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);
@@ -54,7 +54,7 @@ int mnl_nlmsg_portid_ok(const struct nlmsghdr *nlh, unsigned int portid);
/* Netlink message getters */
extern void *mnl_nlmsg_get_payload(const struct nlmsghdr *nlh);
-extern void *mnl_nlmsg_get_payload_offset(const struct nlmsghdr *nlh, int offset);
+extern void *mnl_nlmsg_get_payload_offset(const struct nlmsghdr *nlh, size_t offset);
extern void *mnl_nlmsg_get_payload_tail(const struct nlmsghdr *nlh);
/* Netlink dump message */