From 830de180047c5f8c9d1bec13a3419a922737eb25 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 25 Jun 2003 16:04:46 +0000 Subject: better output C --- usr.bin/rpcgen/rpc_hout.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/rpcgen/rpc_hout.c b/usr.bin/rpcgen/rpc_hout.c index 8d89e0ab09c..caa694540aa 100644 --- a/usr.bin/rpcgen/rpc_hout.c +++ b/usr.bin/rpcgen/rpc_hout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_hout.c,v 1.13 2003/06/19 20:31:08 deraadt Exp $ */ +/* $OpenBSD: rpc_hout.c,v 1.14 2003/06/25 16:04:45 deraadt Exp $ */ /* $NetBSD: rpc_hout.c,v 1.4 1995/06/11 21:49:55 pk Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -119,10 +119,10 @@ pxdrfuncdecl(name, pointerp) { fprintf(fout,"#ifdef __cplusplus\n"); - fprintf(fout, "extern \"C\" bool_t xdr_%s(XDR *, %s%s);\n", + fprintf(fout, "extern \"C\" bool_t xdr_%s(XDR *, %s %s);\n", name, name, pointerp ? ("*") : ""); fprintf(fout,"#elif defined(__STDC__)\n"); - fprintf(fout, "extern bool_t xdr_%s(XDR *, %s%s);\n", + fprintf(fout, "extern bool_t xdr_%s(XDR *, %s %s);\n", name, name, pointerp ? ("*") : ""); fprintf(fout,"#else /* Old Style C */\n"); fprintf(fout, "bool_t xdr_%s();\n", name); -- cgit v1.2.3