summaryrefslogtreecommitdiff
path: root/lib/libc/rpc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-03-19 00:27:28 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-03-19 00:27:28 +0000
commit8aee2c24aa2e8e4e5f36756d400b1fa2a0499ab3 (patch)
tree00882eff56effbb09e1eb14578ed85380d3a4e92 /lib/libc/rpc
parent2e443d98dddc7abe239819ab4c58b3a7c4370533 (diff)
Some -Wall
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r--lib/libc/rpc/clnt_raw.c3
-rw-r--r--lib/libc/rpc/clnt_simple.c4
-rw-r--r--lib/libc/rpc/rpc_prot.c5
-rw-r--r--lib/libc/rpc/svc_auth.c8
-rw-r--r--lib/libc/rpc/svc_run.c5
-rw-r--r--lib/libc/rpc/svc_simple.c4
-rw-r--r--lib/libc/rpc/svc_udp.c6
-rw-r--r--lib/libc/rpc/xdr.c4
8 files changed, 25 insertions, 14 deletions
diff --git a/lib/libc/rpc/clnt_raw.c b/lib/libc/rpc/clnt_raw.c
index 79ff73b98ab..d6d4c874506 100644
--- a/lib/libc/rpc/clnt_raw.c
+++ b/lib/libc/rpc/clnt_raw.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: clnt_raw.c,v 1.7 1997/11/05 10:17:40 deraadt Exp $";
+static char *rcsid = "$OpenBSD: clnt_raw.c,v 1.8 1998/03/19 00:27:18 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -42,6 +42,7 @@ static char *rcsid = "$OpenBSD: clnt_raw.c,v 1.7 1997/11/05 10:17:40 deraadt Exp
* any interference from the kernal.
*/
+#include <stdio.h>
#include <stdlib.h>
#include <rpc/rpc.h>
diff --git a/lib/libc/rpc/clnt_simple.c b/lib/libc/rpc/clnt_simple.c
index 1ecd963fa87..b3091f293a2 100644
--- a/lib/libc/rpc/clnt_simple.c
+++ b/lib/libc/rpc/clnt_simple.c
@@ -29,7 +29,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: clnt_simple.c,v 1.7 1997/04/06 09:13:02 deraadt Exp $";
+static char *rcsid = "$OpenBSD: clnt_simple.c,v 1.8 1998/03/19 00:27:20 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -45,6 +45,7 @@ static char *rcsid = "$OpenBSD: clnt_simple.c,v 1.7 1997/04/06 09:13:02 deraadt
#include <rpc/rpc.h>
#include <sys/socket.h>
#include <netdb.h>
+#include <unistd.h>
static struct callrpc_private {
CLIENT *client;
@@ -53,6 +54,7 @@ static struct callrpc_private {
char *oldhost;
} *callrpc_private;
+int
callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out)
char *host;
int prognum, versnum, procnum;
diff --git a/lib/libc/rpc/rpc_prot.c b/lib/libc/rpc/rpc_prot.c
index d0ca72de32b..c6168e72188 100644
--- a/lib/libc/rpc/rpc_prot.c
+++ b/lib/libc/rpc/rpc_prot.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: rpc_prot.c,v 1.5 1998/02/27 21:02:40 deraadt Exp $";
+static char *rcsid = "$OpenBSD: rpc_prot.c,v 1.6 1998/03/19 00:27:21 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -103,8 +103,9 @@ xdr_accepted_reply(xdrs, ar)
if (!xdr_u_int32_t(xdrs, &(ar->ar_vers.low)))
return (FALSE);
return (xdr_u_int32_t(xdrs, &(ar->ar_vers.high)));
+ default:
+ return (TRUE); /* TRUE => open ended set of problems */
}
- return (TRUE); /* TRUE => open ended set of problems */
}
/*
diff --git a/lib/libc/rpc/svc_auth.c b/lib/libc/rpc/svc_auth.c
index 95729a81e51..ba4d82d1d8e 100644
--- a/lib/libc/rpc/svc_auth.c
+++ b/lib/libc/rpc/svc_auth.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: svc_auth.c,v 1.3 1996/08/19 08:31:52 tholo Exp $";
+static char *rcsid = "$OpenBSD: svc_auth.c,v 1.4 1998/03/19 00:27:22 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -62,9 +62,9 @@ enum auth_stat _svcauth_short(); /* short hand unix style */
static struct {
enum auth_stat (*authenticator)();
} svcauthsw[] = {
- _svcauth_null, /* AUTH_NULL */
- _svcauth_unix, /* AUTH_UNIX */
- _svcauth_short, /* AUTH_SHORT */
+ { _svcauth_null }, /* AUTH_NULL */
+ { _svcauth_unix }, /* AUTH_UNIX */
+ { _svcauth_short } /* AUTH_SHORT */
};
#define AUTH_MAX 2 /* HIGHEST AUTH NUMBER */
diff --git a/lib/libc/rpc/svc_run.c b/lib/libc/rpc/svc_run.c
index c7cccb3f4d7..5aa95b77d8d 100644
--- a/lib/libc/rpc/svc_run.c
+++ b/lib/libc/rpc/svc_run.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: svc_run.c,v 1.9 1996/11/14 06:33:12 etheisen Exp $";
+static char *rcsid = "$OpenBSD: svc_run.c,v 1.10 1998/03/19 00:27:24 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -38,12 +38,15 @@ static char *rcsid = "$OpenBSD: svc_run.c,v 1.9 1996/11/14 06:33:12 etheisen Exp
#include <rpc/rpc.h>
#include <sys/errno.h>
#include <unistd.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
extern int __svc_fdsetsize;
extern fd_set *__svc_fdset;
+void svc_getreqset2 __P((fd_set *, int));
+
void
svc_run()
{
diff --git a/lib/libc/rpc/svc_simple.c b/lib/libc/rpc/svc_simple.c
index c81043586d8..767f84500ad 100644
--- a/lib/libc/rpc/svc_simple.c
+++ b/lib/libc/rpc/svc_simple.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: svc_simple.c,v 1.4 1996/09/15 09:31:41 tholo Exp $";
+static char *rcsid = "$OpenBSD: svc_simple.c,v 1.5 1998/03/19 00:27:25 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -42,6 +42,7 @@ static char *rcsid = "$OpenBSD: svc_simple.c,v 1.4 1996/09/15 09:31:41 tholo Exp
#include <stdlib.h>
#include <string.h>
#include <rpc/rpc.h>
+#include <rpc/pmap_clnt.h>
#include <sys/socket.h>
#include <netdb.h>
@@ -56,6 +57,7 @@ static void universal();
static SVCXPRT *transp;
struct proglst *pl;
+int
registerrpc(prognum, versnum, procnum, progname, inproc, outproc)
int prognum, versnum, procnum;
char *(*progname)();
diff --git a/lib/libc/rpc/svc_udp.c b/lib/libc/rpc/svc_udp.c
index 2c4d8ac1175..00a62796593 100644
--- a/lib/libc/rpc/svc_udp.c
+++ b/lib/libc/rpc/svc_udp.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: svc_udp.c,v 1.7 1997/07/09 03:05:06 deraadt Exp $";
+static char *rcsid = "$OpenBSD: svc_udp.c,v 1.8 1998/03/19 00:27:26 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -45,6 +45,7 @@ static char *rcsid = "$OpenBSD: svc_udp.c,v 1.7 1997/07/09 03:05:06 deraadt Exp
#include <rpc/rpc.h>
#include <sys/socket.h>
#include <errno.h>
+#include <unistd.h>
#define rpc_buffer(xprt) ((xprt)->xp_p1)
@@ -348,6 +349,7 @@ struct udp_cache {
* Enable use of the cache.
* Note: there is no disable.
*/
+int
svcudp_enablecache(transp, size)
SVCXPRT *transp;
u_long size;
@@ -451,7 +453,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;
diff --git a/lib/libc/rpc/xdr.c b/lib/libc/rpc/xdr.c
index 989efb30c19..1a31136db49 100644
--- a/lib/libc/rpc/xdr.c
+++ b/lib/libc/rpc/xdr.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: xdr.c,v 1.4 1996/12/14 06:49:42 tholo Exp $";
+static char *rcsid = "$OpenBSD: xdr.c,v 1.5 1998/03/19 00:27:27 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -475,7 +475,7 @@ xdr_opaque(xdrs, cp, cnt)
register u_int cnt;
{
register u_int rndup;
- static crud[BYTES_PER_XDR_UNIT];
+ static int crud[BYTES_PER_XDR_UNIT];
/*
* if no data we are done