summaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen/rpc_clntout.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/rpcgen/rpc_clntout.c')
-rw-r--r--usr.bin/rpcgen/rpc_clntout.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/rpcgen/rpc_clntout.c b/usr.bin/rpcgen/rpc_clntout.c
index 6143aa33f60..bedeb643c72 100644
--- a/usr.bin/rpcgen/rpc_clntout.c
+++ b/usr.bin/rpcgen/rpc_clntout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_clntout.c,v 1.4 2001/07/17 02:23:59 pvalchev Exp $ */
+/* $OpenBSD: rpc_clntout.c,v 1.5 2001/07/18 22:26:00 deraadt Exp $ */
/* $NetBSD: rpc_clntout.c,v 1.4 1995/06/11 21:49:52 pk Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -44,9 +44,11 @@ static char sccsid[] = "@(#)rpc_clntout.c 1.11 89/02/22 (C) 1987 SMI";
#include "rpc_parse.h"
#include "rpc_util.h"
-static void write_program __P((definition *));
+static write_program __P((definition *));
static void printbody __P((proc_list *));
+extern pdeclaration();
+
#define DEFAULT_TIMEOUT 25 /* in seconds */
static char RESULT[] = "clnt_res";
@@ -69,7 +71,7 @@ write_stubs()
}
}
-static void
+static
write_program(def)
definition *def;
{
@@ -163,6 +165,7 @@ printbody(proc)
{
decl_list *l;
bool_t args2 = (proc->arg_num > 1);
+ int i;
/* For new style with multiple arguments, need a structure in which
to stuff the arguments. */