Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/rpcgen Put back the extra prototype for main(); some...
details: https://anonhg.NetBSD.org/src/rev/651f55af1213
branches: trunk
changeset: 325248:651f55af1213
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 15 06:07:39 2013 +0000
description:
Put back the extra prototype for main(); some programs #define main to
something else, so we need the extra prototype.
diffstat:
usr.bin/rpcgen/rpc_svcout.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r b06163732838 -r 651f55af1213 usr.bin/rpcgen/rpc_svcout.c
--- a/usr.bin/rpcgen/rpc_svcout.c Sun Dec 15 04:24:53 2013 +0000
+++ b/usr.bin/rpcgen/rpc_svcout.c Sun Dec 15 06:07:39 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc_svcout.c,v 1.25 2013/12/15 00:40:17 christos Exp $ */
+/* $NetBSD: rpc_svcout.c,v 1.26 2013/12/15 06:07:39 christos Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)rpc_svcout.c 1.29 89/03/30 (C) 1987 SMI";
#else
-__RCSID("$NetBSD: rpc_svcout.c,v 1.25 2013/12/15 00:40:17 christos Exp $");
+__RCSID("$NetBSD: rpc_svcout.c,v 1.26 2013/12/15 06:07:39 christos Exp $");
#endif
#endif
@@ -118,6 +118,8 @@
if (nomain)
return;
+ f_print(fout, "\n\n");
+ f_print(fout, "int main(int, char *[]);\n");
f_print(fout, "\nint\n");
f_print(fout, "main(int argc, char *argv[])\n");
f_print(fout, "{\n");
Home |
Main Index |
Thread Index |
Old Index