diff --git a/sunrpc/svc_udp.c b/sunrpc/svc_udp.c index cb1d70558e..45f99440b2 100644 --- a/sunrpc/svc_udp.c +++ b/sunrpc/svc_udp.c @@ -277,7 +277,7 @@ svcudp_recv (xprt, msg) { /* It was a simple IP_PKTIFO as we expected, discard the interface field. */ - struct in_pktinfo *pkti = CMSG_DATA (cmsg); + struct in_pktinfo *pkti = (struct in_pktinfo *) CMSG_DATA (cmsg); pkti->ipi_ifindex = 0; } }