kernel-netlink: Avoid casting the NLMSG_DATA() return value
[strongswan.git] / src / libhydra / plugins / kernel_netlink / kernel_netlink_shared.c
index fd00c23..30d5aaa 100644 (file)
@@ -197,7 +197,7 @@ METHOD(netlink_socket_t, netlink_send_ack, status_t,
                {
                        case NLMSG_ERROR:
                        {
-                               struct nlmsgerr* err = (struct nlmsgerr*)NLMSG_DATA(hdr);
+                               struct nlmsgerr* err = NLMSG_DATA(hdr);
 
                                if (err->error)
                                {