Add explict function return types

This commit is contained in:
jtc 1996-03-29 23:00:47 +00:00
parent 59e1daefcd
commit 18ec2ba033
7 changed files with 23 additions and 17 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: auth_unix.c,v 1.2 1995/02/25 03:01:35 cgd Exp $ */
/* $NetBSD: auth_unix.c,v 1.3 1996/03/29 23:00:47 jtc Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -32,7 +32,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)auth_unix.c 1.19 87/08/11 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)auth_unix.c 2.2 88/08/01 4.0 RPCSRC";*/
static char *rcsid = "$NetBSD: auth_unix.c,v 1.2 1995/02/25 03:01:35 cgd Exp $";
static char *rcsid = "$NetBSD: auth_unix.c,v 1.3 1996/03/29 23:00:47 jtc Exp $";
#endif
/*
@ -84,7 +84,7 @@ struct audata {
};
#define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private)
static bool_t marshal_new_auth();
static void marshal_new_auth();
/*
@ -305,7 +305,7 @@ authunix_destroy(auth)
* Marshals (pre-serializes) an auth struct.
* sets private data, au_marshed and au_mpos
*/
static bool_t
static void
marshal_new_auth(auth)
register AUTH *auth;
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: bindresvport.c,v 1.5 1995/06/03 22:37:19 mycroft Exp $ */
/* $NetBSD: bindresvport.c,v 1.6 1996/03/29 23:00:50 jtc Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -32,7 +32,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)bindresvport.c 1.8 88/02/08 SMI";*/
/*static char *sccsid = "from: @(#)bindresvport.c 2.2 88/07/29 4.0 RPCSRC";*/
static char *rcsid = "$NetBSD: bindresvport.c,v 1.5 1995/06/03 22:37:19 mycroft Exp $";
static char *rcsid = "$NetBSD: bindresvport.c,v 1.6 1996/03/29 23:00:50 jtc Exp $";
#endif
/*
@ -48,6 +48,7 @@ static char *rcsid = "$NetBSD: bindresvport.c,v 1.5 1995/06/03 22:37:19 mycroft
/*
* Bind a socket to a privileged IP port
*/
int
bindresvport(sd, sin)
int sd;
struct sockaddr_in *sin;

View File

@ -1,4 +1,4 @@
/* $NetBSD: clnt_simple.c,v 1.5 1995/06/03 22:37:23 mycroft Exp $ */
/* $NetBSD: clnt_simple.c,v 1.6 1996/03/29 23:00:51 jtc Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -32,7 +32,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)clnt_simple.c 1.35 87/08/11 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)clnt_simple.c 2.2 88/08/01 4.0 RPCSRC";*/
static char *rcsid = "$NetBSD: clnt_simple.c,v 1.5 1995/06/03 22:37:23 mycroft Exp $";
static char *rcsid = "$NetBSD: clnt_simple.c,v 1.6 1996/03/29 23:00:51 jtc Exp $";
#endif
/*
@ -56,6 +56,7 @@ static struct callrpc_private {
char *oldhost;
} *callrpc_private;
int
callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out)
char *host;
xdrproc_t inproc, outproc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: getrpcport.c,v 1.5 1995/06/03 22:37:24 mycroft Exp $ */
/* $NetBSD: getrpcport.c,v 1.6 1996/03/29 23:00:53 jtc Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -32,7 +32,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)getrpcport.c 1.3 87/08/11 SMI";*/
/*static char *sccsid = "from: @(#)getrpcport.c 2.1 88/07/29 4.0 RPCSRC";*/
static char *rcsid = "$NetBSD: getrpcport.c,v 1.5 1995/06/03 22:37:24 mycroft Exp $";
static char *rcsid = "$NetBSD: getrpcport.c,v 1.6 1996/03/29 23:00:53 jtc Exp $";
#endif
/*
@ -45,6 +45,7 @@ static char *rcsid = "$NetBSD: getrpcport.c,v 1.5 1995/06/03 22:37:24 mycroft Ex
#include <netdb.h>
#include <sys/socket.h>
int
getrpcport(host, prognum, versnum, proto)
char *host;
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: rpc_dtablesize.c,v 1.3 1995/02/25 03:01:55 cgd Exp $ */
/* $NetBSD: rpc_dtablesize.c,v 1.4 1996/03/29 23:00:54 jtc Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -32,7 +32,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)rpc_dtablesize.c 1.2 87/08/11 Copyr 1987 Sun Micro";*/
/*static char *sccsid = "from: @(#)rpc_dtablesize.c 2.1 88/07/29 4.0 RPCSRC";*/
static char *rcsid = "$NetBSD: rpc_dtablesize.c,v 1.3 1995/02/25 03:01:55 cgd Exp $";
static char *rcsid = "$NetBSD: rpc_dtablesize.c,v 1.4 1996/03/29 23:00:54 jtc Exp $";
#endif
#include <sys/types.h>
@ -41,6 +41,7 @@ static char *rcsid = "$NetBSD: rpc_dtablesize.c,v 1.3 1995/02/25 03:01:55 cgd Ex
* Cache the result of getdtablesize(), so we don't have to do an
* expensive system call every time.
*/
int
_rpc_dtablesize()
{
static int size;

View File

@ -1,4 +1,4 @@
/* $NetBSD: svc_simple.c,v 1.4 1995/04/14 19:48:28 jtc Exp $ */
/* $NetBSD: svc_simple.c,v 1.5 1996/03/29 23:00:55 jtc Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -32,7 +32,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)svc_simple.c 1.18 87/08/11 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)svc_simple.c 2.2 88/08/01 4.0 RPCSRC";*/
static char *rcsid = "$NetBSD: svc_simple.c,v 1.4 1995/04/14 19:48:28 jtc Exp $";
static char *rcsid = "$NetBSD: svc_simple.c,v 1.5 1996/03/29 23:00:55 jtc Exp $";
#endif
/*
@ -60,6 +60,7 @@ static void universal();
static SVCXPRT *transp;
struct proglst *pl;
int
registerrpc(prognum, versnum, procnum, progname, inproc, outproc)
char *(*progname)();
xdrproc_t inproc, outproc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: svc_udp.c,v 1.6 1995/06/03 22:37:28 mycroft Exp $ */
/* $NetBSD: svc_udp.c,v 1.7 1996/03/29 23:00:57 jtc Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -32,7 +32,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)svc_udp.c 2.2 88/07/29 4.0 RPCSRC";*/
static char *rcsid = "$NetBSD: svc_udp.c,v 1.6 1995/06/03 22:37:28 mycroft Exp $";
static char *rcsid = "$NetBSD: svc_udp.c,v 1.7 1996/03/29 23:00:57 jtc Exp $";
#endif
/*
@ -340,6 +340,7 @@ struct udp_cache {
* Enable use of the cache.
* Note: there is no disable.
*/
int
svcudp_enablecache(transp, size)
SVCXPRT *transp;
u_long size;
@ -443,7 +444,7 @@ cache_set(xprt, replylen)
* Try to get an entry from the cache
* return 1 if found, 0 if not found
*/
static
static int
cache_get(xprt, msg, replyp, replylenp)
SVCXPRT *xprt;
struct rpc_msg *msg;