mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 10:06:40 -04:00
In both cases, function pointer arguments were inconsistently declared and the result worked because of C's odd rules around function pointer (de)references. With a stricter compiler these fail to compile. Reported by: pfg@ Obtained from: base r350049 by brooks@ from CheriBSD MFH: 2019Q3 Differential Revision: https://reviews.freebsd.org/D20964
13 lines
516 B
C
13 lines
516 B
C
Index: amd/rpc_fwd.c
|
|
===================================================================
|
|
--- amd/rpc_fwd.c (revision 350048)
|
|
+++ amd/rpc_fwd.c (revision 350049)
|
|
@@ -221,7 +221,7 @@
|
|
* different address.
|
|
*/
|
|
int
|
|
-fwd_packet(int type_id, char *pkt, int len, struct sockaddr_in *fwdto, struct sockaddr_in *replyto, opaque_t cb_arg, fwd_fun cb)
|
|
+fwd_packet(int type_id, char *pkt, int len, struct sockaddr_in *fwdto, struct sockaddr_in *replyto, opaque_t cb_arg, fwd_fun *cb)
|
|
{
|
|
rpc_forward *p;
|
|
u_int *pkt_int;
|