diff options
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 |