summaryrefslogtreecommitdiffstats
path: root/include/rpc
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-03-20 08:26:22 +0000
committeralfred <alfred@FreeBSD.org>2001-03-20 08:26:22 +0000
commitfb24675dccb5fa3d6dfbbdf65b778acde32cdeef (patch)
tree01cce75da65165b1f69258e6733506bea1e5067a /include/rpc
parentc0be98ba61feb4c5551763d28a02e209d1ea167f (diff)
downloadFreeBSD-src-fb24675dccb5fa3d6dfbbdf65b778acde32cdeef.zip
FreeBSD-src-fb24675dccb5fa3d6dfbbdf65b778acde32cdeef.tar.gz
The TI-RPC spammed over a '#ifdef _KERNEL' hack for the xdrproc_t typedef
revert the spammage Pointed out by: bde
Diffstat (limited to 'include/rpc')
-rw-r--r--include/rpc/xdr.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
index 90107ff..d38aa49 100644
--- a/include/rpc/xdr.h
+++ b/include/rpc/xdr.h
@@ -131,10 +131,15 @@ 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.
- *
+ */
+#ifdef _KERNEL
+typedef bool_t (*xdrproc_t) __P((XDR *, void *, u_int));
+#else
+/*
* XXX can't actually prototype it, because some take three args!!!
*/
typedef bool_t (*xdrproc_t) __P((/* XDR *, void *, u_int */));
+#endif
/*
* Operations defined on a XDR handle
OpenPOWER on IntegriCloud