diff options
author | bde <bde@FreeBSD.org> | 1998-09-21 02:43:30 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-09-21 02:43:30 +0000 |
commit | b973f78b945eb05f88320aaf3fa16c2c8ba1b64a (patch) | |
tree | 5c89dde51e22708b0b97d39e0aff4c3f3719a1af /include/rpc/xdr.h | |
parent | 5548dbb67b23ce7cfd9b84c2f5f21ffc30b60c10 (diff) | |
download | FreeBSD-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/rpc/xdr.h')
-rw-r--r-- | include/rpc/xdr.h | 11 |
1 files changed, 8 insertions, 3 deletions
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 |