diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-03 00:59:36 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-03 00:59:36 +0200 |
commit | f8fb875d3e48d833c1a120e7c3f470d614cbba50 (patch) | |
tree | f0f930121991378ee4e0ae4f4d7c79ac9b790e47 /include | |
parent | 3abe11928494ca315d1b6c53d9d9805d0a0fa5b9 (diff) | |
download | libmnl-f8fb875d3e48d833c1a120e7c3f470d614cbba50.tar.gz |
constify several mnl_socket_* parameters and use size_t instead of int
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libmnl/libmnl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index 6c02d78..d971172 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -17,12 +17,12 @@ extern int mnl_socket_bind(struct mnl_socket *nl, int groups, int pid); extern int mnl_socket_close(struct mnl_socket *nl); extern int mnl_socket_get_fd(const struct mnl_socket *nl); extern unsigned int mnl_socket_get_portid(const struct mnl_socket *nl); -extern int mnl_socket_sendto(struct mnl_socket *nl, const void *req, int siz); -extern int mnl_socket_sendmsg(struct mnl_socket *nl, struct msghdr *msg, int flags); -extern int mnl_socket_recvfrom(struct mnl_socket *nl, void *buf, int siz); +extern int mnl_socket_sendto(const struct mnl_socket *nl, const void *req, size_t siz); +extern int mnl_socket_sendmsg(const struct mnl_socket *nl, const struct msghdr *msg, int flags); +extern int mnl_socket_recvfrom(const struct mnl_socket *nl, void *buf, size_t siz); extern int mnl_socket_recvmsg(const struct mnl_socket *nl, struct msghdr *msg, int flags); -extern int mnl_socket_setsockopt(struct mnl_socket *nl, int type, void *buf, socklen_t len); -extern int mnl_socket_getsockopt(struct mnl_socket *nl, int type, void *buf, socklen_t *len); +extern int mnl_socket_setsockopt(const struct mnl_socket *nl, int type, void *buf, socklen_t len); +extern int mnl_socket_getsockopt(const struct mnl_socket *nl, int type, void *buf, socklen_t *len); /* * generic netlink message API |