summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/attr.c2
-rw-r--r--src/socket.c2
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,