summaryrefslogtreecommitdiff
path: root/include/libmnl
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-11-13 19:22:38 +0100
committerJan Engelhardt <jengelh@medozas.de>2010-11-16 12:23:52 +0100
commita90cfc66d9c8ed0e7a645e3d9a0b85754d1b0f18 (patch)
tree5e09eb7544ee7f8feb38e849cc2cd6f9dba58cd1 /include/libmnl
parent478dc5f4ab8d0a639d1bafe3bd53ff3309727836 (diff)
downloadlibmnl-a90cfc66d9c8ed0e7a645e3d9a0b85754d1b0f18.tar.gz
libmnl-a90cfc66d9c8ed0e7a645e3d9a0b85754d1b0f18.zip
socket: propagate sendto/recvmsg's return types
sendto/recvfrom return ssize_t, so libmnl should not truncate the result range. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
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 c58635f..01ae484 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -36,8 +36,8 @@ MNL_API int mnl_socket_bind(struct mnl_socket *nl, unsigned int groups, pid_t pi
MNL_API int mnl_socket_close(struct mnl_socket *nl);
MNL_API int mnl_socket_get_fd(const struct mnl_socket *nl);
MNL_API unsigned int mnl_socket_get_portid(const struct mnl_socket *nl);
-MNL_API int mnl_socket_sendto(const struct mnl_socket *nl, const void *req, size_t siz);
-MNL_API int mnl_socket_recvfrom(const struct mnl_socket *nl, void *buf, size_t siz);
+MNL_API ssize_t mnl_socket_sendto(const struct mnl_socket *nl, const void *req, size_t siz);
+MNL_API ssize_t mnl_socket_recvfrom(const struct mnl_socket *nl, void *buf, size_t siz);
MNL_API int mnl_socket_setsockopt(const struct mnl_socket *nl, int type, void *buf, socklen_t len);
MNL_API int mnl_socket_getsockopt(const struct mnl_socket *nl, int type, void *buf, socklen_t *len);