Displaying 1 result from an estimated 1 matches for "portmap_args".
2012 Jan 11
1
[PATCH] nfsmount: defeat dummypmap compiler warning
...rlen;
 	unsigned char pkt[65536];	/* Max UDP packet size */
 	/* RPC UDP packets do not include TCP fragment size */
-	struct rpc_call *rpc = (struct rpc_call *) &pkt[-4];
+	struct rpc_call *rpc = (struct rpc_call *)((uintptr_t)pkt - 4);
 	struct rpc_auth *cred;
 	struct rpc_auth *vrf;
 	struct portmap_args *args;
-- 
1.7.3.1