diff options
author | nsayer <nsayer@FreeBSD.org> | 2000-06-22 01:46:25 +0000 |
---|---|---|
committer | nsayer <nsayer@FreeBSD.org> | 2000-06-22 01:46:25 +0000 |
commit | 6405d79248733fa22f832a3a8e0ff164d5742c46 (patch) | |
tree | 8a90c18876a5420458c47877860d66be5786d733 | |
parent | aa0e1b74b037222da6dcb93b9dea7ce7ea67de05 (diff) | |
download | FreeBSD-src-6405d79248733fa22f832a3a8e0ff164d5742c46.zip FreeBSD-src-6405d79248733fa22f832a3a8e0ff164d5742c46.tar.gz |
Moving forward on my commitment to always make at least one commit from
a terminal room of any conference I attend....
Fix xdrproc_t prototype. () instead of (...) breaks C++ programs.
-rw-r--r-- | include/rpc/xdr.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h index 2ce9205..1209254 100644 --- a/include/rpc/xdr.h +++ b/include/rpc/xdr.h @@ -128,14 +128,14 @@ 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. + * + * Sometimes there is a third argument, sometimes not. So for correct + * prototyping, ... is required. */ #ifdef _KERNEL typedef bool_t (*xdrproc_t) __P((XDR *, void *, u_int)); #else -/* - * XXX can't actually prototype it, because some take two args!!! - */ -typedef bool_t (*xdrproc_t) __P((/* XDR *, void *, u_int */)); +typedef bool_t (*xdrproc_t) __P((XDR *, ...)); #endif /* |