ports/sysutils/am-utils/files/patch-amd_rpc__fwd.c
Cy Schubert 1199e9e38c Fix two mismatches between function declaration and definition.
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
2019-08-15 02:21:57 +00:00

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;