Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx> --- src/attr.c | 2 +- src/socket.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/attr.c b/src/attr.c index cafd2c7..fcb5e4a 100644 --- a/src/attr.c +++ b/src/attr.c @@ -351,7 +351,7 @@ uint64_t mnl_attr_get_u64(const struct nlattr *attr) */ const char *mnl_attr_get_str(const struct nlattr *attr) { - return (const char *)mnl_attr_get_payload(attr); + return mnl_attr_get_payload(attr); } /** diff --git a/src/socket.c b/src/socket.c index a9ff053..3322ad1 100644 --- a/src/socket.c +++ b/src/socket.c @@ -201,7 +201,7 @@ int mnl_socket_recvfrom(const struct mnl_socket *nl, void *buf, size_t bufsiz) .iov_len = bufsiz, }; struct msghdr msg = { - .msg_name = (void *)&addr, + .msg_name = &addr, .msg_namelen = sizeof(struct sockaddr_nl), .msg_iov = &iov, .msg_iovlen = 1, -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html