rpc: Fix the definition of xdr_void()

xdr_void() should have type xdrproc_t, make it so.

PR:		280514
Reviewed by:	brooks, dim
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D47340
This commit is contained in:
Mark Johnston 2024-10-30 19:27:18 +00:00
parent 47ca5d103f
commit a5d1cf5e36
4 changed files with 4 additions and 7 deletions

View File

@ -278,7 +278,7 @@ struct xdr_discrim {
* These are the "generic" xdr routines.
*/
__BEGIN_DECLS
extern bool_t xdr_void(void);
extern bool_t xdr_void(XDR *, void *);
extern bool_t xdr_int(XDR *, int *);
extern bool_t xdr_u_int(XDR *, u_int *);
extern bool_t xdr_long(XDR *, long *);

View File

@ -84,13 +84,11 @@ xdr_free(xdrproc_t proc, void *objp)
* XDR nothing
*/
bool_t
xdr_void(void)
xdr_void(XDR *xdrs __unused, void *ptr __unused)
{
return (TRUE);
}
/*
* XDR integers
*/

View File

@ -285,7 +285,7 @@ struct xdr_discrim {
* These are the "generic" xdr routines.
*/
__BEGIN_DECLS
extern bool_t xdr_void(void);
extern bool_t xdr_void(XDR *, void *);
extern bool_t xdr_int(XDR *, int *);
extern bool_t xdr_u_int(XDR *, u_int *);
extern bool_t xdr_long(XDR *, long *);

View File

@ -84,9 +84,8 @@ xdr_free(xdrproc_t proc, void *objp)
* XDR nothing
*/
bool_t
xdr_void(void)
xdr_void(XDR *xrds __unused, void *ptr __unused)
{
return (TRUE);
}