aboutsummaryrefslogtreecommitdiff
path: root/include/rpc/xdr.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-09-21 02:43:30 +0000
committerBruce Evans <bde@FreeBSD.org>1998-09-21 02:43:30 +0000
commit1245e3e02bb03a0eed11e0feed82173ca54286e7 (patch)
treed6f47b23040c46cfd4e13956e4a2e1fc7b126af2 /include/rpc/xdr.h
parentbd6bae21667a592059a46d04aa9bab4137a5f3ba (diff)
downloadsrc-1245e3e02bb03a0eed11e0feed82173ca54286e7.tar.gz
src-1245e3e02bb03a0eed11e0feed82173ca54286e7.zip
Don't declare functions without a prototype if KERNEL is defined. This
fixes lots of warnings about missing prototypes in sys/netatm/spans/*.
Notes
Notes: svn path=/head/; revision=39534
Diffstat (limited to 'include/rpc/xdr.h')
-rw-r--r--include/rpc/xdr.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
index 39a52c269127..70abb5d40067 100644
--- a/include/rpc/xdr.h
+++ b/include/rpc/xdr.h
@@ -28,7 +28,7 @@
*
* from: @(#)xdr.h 1.19 87/04/22 SMI
* from: @(#)xdr.h 2.2 88/07/29 4.0 RPCSRC
- * $Id: xdr.h,v 1.10 1997/05/28 04:45:15 wpaul Exp $
+ * $Id: xdr.h,v 1.11 1998/09/08 17:33:12 obrien Exp $
*/
/*
@@ -128,10 +128,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.
- *
- * XXX can't actually prototype it, because some take three args!!!
+ */
+#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 */));
+#endif
/*
* Operations defined on a XDR handle