Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/rpcgen Correct newstyle code generation
details: https://anonhg.NetBSD.org/src/rev/afd4090a519c
branches: trunk
changeset: 340623:afd4090a519c
user: kamil <kamil%NetBSD.org@localhost>
date: Sun Sep 20 15:52:11 2015 +0000
description:
Correct newstyle code generation
For newstyle we used to generate oldstyle code. This bug has been fixed in
FreeBSD on 13 Dec 1995 by wpaul.
https://github.com/freebsd/freebsd/commit/15a1e09c3d41cb01afc70a2ea4d20c5a0d09348a
Reviewed by <christos>, <pgoyette>
diffstat:
usr.bin/rpcgen/rpc_svcout.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 1ab8559acffd -r afd4090a519c usr.bin/rpcgen/rpc_svcout.c
--- a/usr.bin/rpcgen/rpc_svcout.c Sun Sep 20 15:45:07 2015 +0000
+++ b/usr.bin/rpcgen/rpc_svcout.c Sun Sep 20 15:52:11 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc_svcout.c,v 1.29 2015/05/09 21:44:47 christos Exp $ */
+/* $NetBSD: rpc_svcout.c,v 1.30 2015/09/20 15:52:11 kamil 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.29 2015/05/09 21:44:47 christos Exp $");
+__RCSID("$NetBSD: rpc_svcout.c,v 1.30 2015/09/20 15:52:11 kamil Exp $");
#endif
#endif
@@ -449,9 +449,12 @@
"\t\t%s = (char *(*)(char *, struct svc_req *))",
ROUTINE);
- if (newstyle) /* new style: calls internal routine */
+ if (newstyle) { /* new style: calls internal routine */
f_print(fout, "_");
- pvname_svc(proc->proc_name, vp->vers_num);
+ pvname(proc->proc_name, vp->vers_num);
+ } else {
+ pvname_svc(proc->proc_name, vp->vers_num);
+ }
f_print(fout, ";\n");
f_print(fout, "\t\tbreak;\n\n");
}
Home |
Main Index |
Thread Index |
Old Index