diff options
-rw-r--r-- | src/attr.c | 2 | ||||
-rw-r--r-- | src/socket.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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, |