summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-09-21 02:43:30 +0000
committerbde <bde@FreeBSD.org>1998-09-21 02:43:30 +0000
commitb973f78b945eb05f88320aaf3fa16c2c8ba1b64a (patch)
tree5c89dde51e22708b0b97d39e0aff4c3f3719a1af /include
parent5548dbb67b23ce7cfd9b84c2f5f21ffc30b60c10 (diff)
downloadFreeBSD-src-b973f78b945eb05f88320aaf3fa16c2c8ba1b64a.zip
FreeBSD-src-b973f78b945eb05f88320aaf3fa16c2c8ba1b64a.tar.gz
Don't declare functions without a prototype if KERNEL is defined. This
fixes lots of warnings about missing prototypes in sys/netatm/spans/*.
Diffstat (limited to 'include')
-rw-r--r--include/rpc/svc.h4
-rw-r--r--include/rpc/xdr.h11
2 files changed, 11 insertions, 4 deletions
diff --git a/include/rpc/svc.h b/include/rpc/svc.h
index c3f61cc..698d8f9 100644
--- a/include/rpc/svc.h
+++ b/include/rpc/svc.h
@@ -28,7 +28,7 @@
*
* from: @(#)svc.h 1.20 88/02/08 SMI
* from: @(#)svc.h 2.2 88/07/29 4.0 RPCSRC
- * $Id: svc.h,v 1.12 1997/05/28 04:45:13 wpaul Exp $
+ * $Id: svc.h,v 1.13 1998/01/16 11:46:01 bde Exp $
*/
/*
@@ -264,11 +264,13 @@ extern int svc_maxfd;
extern fd_set svc_fdset;
#define svc_fds svc_fdset.fds_bits[0] /* compatibility */
+#ifndef KERNEL
/*
* a small program implemented by the svc_rpc implementation itself;
* also see clnt.h for protocol numbers.
*/
extern void rpctest_service();
+#endif
__BEGIN_DECLS
extern void svc_getreq __P((int));
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
index 39a52c2..70abb5d 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
OpenPOWER on IntegriCloud