diff options
| author | plunky <plunky@NetBSD.org> | 2011-08-30 17:09:51 +0000 |
|---|---|---|
| committer | plunky <plunky@NetBSD.org> | 2011-08-30 17:09:51 +0000 |
| commit | c9bc3a79ed985108249ba81f42d578aa3e19da54 (patch) | |
| tree | ddbcfe3a1d9a823b4e4fcbe79461dc9bf31e0e38 /include | |
| parent | 3cd9f110a3b5d823dfa855b36c0a0b3ca97faa0b (diff) | |
provide a complete prototype for xdrproc_t
(I found no instances where three arguments were actually
used, as per the claim in the comment. If there are any
in third party code then they will need to use a cast)
Diffstat (limited to 'include')
| -rw-r--r-- | include/rpc/xdr.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h index 6685d3ee12f..f15ccb29bc7 100644 --- a/include/rpc/xdr.h +++ b/include/rpc/xdr.h @@ -1,4 +1,4 @@ -/* $NetBSD: xdr.h,v 1.26 2011/07/04 07:54:38 manu Exp $ */ +/* $NetBSD: xdr.h,v 1.27 2011/08/30 17:09:51 plunky Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -130,10 +130,8 @@ typedef struct __rpc_xdr { * The opaque pointer generally points to a structure of the data type * to be decoded. If this pointer is 0, then the type routines should * allocate dynamic storage of the appropriate size and return it. - * - * XXX can't actually prototype it, because some take three args!!! */ -typedef bool_t (*xdrproc_t)(/* XDR *, void *, u_int */); +typedef bool_t (*xdrproc_t)(XDR *, const void *); /* * Operations defined on a XDR handle |
