summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2001-11-24 17:59:22 +0000
committermiod <miod@openbsd.org>2001-11-24 17:59:22 +0000
commitfd08cc1989f891b2984d412829889f30f8ad94f7 (patch)
treefb32cc2a7e3d65a9de4cb84373725365d84082cb
parentHarmonize boot() logic across arches: (diff)
downloadwireguard-openbsd-fd08cc1989f891b2984d412829889f30f8ad94f7.tar.xz
wireguard-openbsd-fd08cc1989f891b2984d412829889f30f8ad94f7.zip
Fix a couple of printf().
-rw-r--r--usr.bin/rpcgen/rpc_sample.c4
-rw-r--r--usr.bin/rpcgen/rpc_svcout.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/rpcgen/rpc_sample.c b/usr.bin/rpcgen/rpc_sample.c
index 6fedae8df6e..ce5201e8ce9 100644
--- a/usr.bin/rpcgen/rpc_sample.c
+++ b/usr.bin/rpcgen/rpc_sample.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_sample.c,v 1.6 2001/11/07 18:44:28 deraadt Exp $ */
+/* $OpenBSD: rpc_sample.c,v 1.7 2001/11/24 17:59:22 miod Exp $ */
/* $NetBSD: rpc_sample.c,v 1.2 1995/06/11 21:50:01 pk Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -188,7 +188,7 @@ write_sample_server(def)
return_type(proc);
else
f_print(fout, "char*" ); /* cannot have void type */
- f_print(fout, " result;\n", proc->res_type);
+ f_print(fout, " result;\n");
f_print(fout,
"\n\t/*\n\t * insert server code here\n\t */\n\n");
if( !streq( proc->res_type, "void") )
diff --git a/usr.bin/rpcgen/rpc_svcout.c b/usr.bin/rpcgen/rpc_svcout.c
index 2c4b6259bde..5e11637e87c 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.6 2001/11/07 18:44:28 deraadt Exp $ */
+/* $OpenBSD: rpc_svcout.c,v 1.7 2001/11/24 17:59:22 miod 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
@@ -168,7 +168,7 @@ write_netid_register(transp)
f_print(fout, "%s\t\texit(1);\n", sp);
f_print(fout, "%s\t}\n", sp);
f_print(fout, "%s\t%s = svc_tli_create(RPC_ANYFD, nconf, 0, 0, 0);\n",
- sp, TRANSP, transp);
+ sp, TRANSP);
f_print(fout, "%s\tif (%s == NULL) {\n", sp, TRANSP);
(void) sprintf(_errbuf, "cannot create %s service.", transp);
print_err_message(tmpbuf);