Don't declare functions without a prototype if KERNEL is defined. This

fixes lots of warnings about missing prototypes in sys/netatm/spans/*.
This commit is contained in:
Bruce Evans 1998-09-21 02:43:30 +00:00
parent bd6bae2166
commit 1245e3e02b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39534
2 changed files with 11 additions and 4 deletions

View File

@ -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));

View File

@ -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