summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-06 21:26:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-06 21:26:01 +0000
commit211c93df38e653491650240405134c87bf7b0767 (patch)
tree1b3610cc89a464074884cd7e13965bb585922fea /usr.bin
parent7bfb3303aefe46b728a5ae37297047ce8c1b8249 (diff)
generate protos for functions
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rpcgen/rpc_svcout.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/usr.bin/rpcgen/rpc_svcout.c b/usr.bin/rpcgen/rpc_svcout.c
index 9c8adccffea..0cc04696c4c 100644
--- a/usr.bin/rpcgen/rpc_svcout.c
+++ b/usr.bin/rpcgen/rpc_svcout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_svcout.c,v 1.17 2003/06/11 23:31:51 deraadt Exp $ */
+/* $OpenBSD: rpc_svcout.c,v 1.18 2003/07/06 21:26:00 deraadt Exp $ */
/* $NetBSD: rpc_svcout.c,v 1.7 1995/06/24 14:59:59 pk Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -356,6 +356,19 @@ write_program(def, storage)
fprintf(fout, "\n");
if (storage != NULL)
fprintf(fout, "%s ", storage);
+ fprintf(fout, "void\t");
+ pvname(def->def_name, vp->vers_num);
+
+ if (Cflag) {
+ fprintf(fout, "(struct svc_req *%s, ", RQSTP);
+ fprintf(fout, "SVCXPRT *%s);\n", TRANSP);
+ } else {
+ fprintf(fout, "()\n");
+ }
+ fprintf(fout, "\n");
+
+ if (storage != NULL)
+ fprintf(fout, "%s ", storage);
fprintf(fout, "void\n");
pvname(def->def_name, vp->vers_num);