Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/rpcgen Delete extra declaration of svc_fdset... And ...



details:   https://anonhg.NetBSD.org/src/rev/e803c9548e50
branches:  trunk
changeset: 341484:e803c9548e50
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 08 01:59:31 2015 +0000

description:
Delete extra declaration of svc_fdset... And some commented out code.
This badly needs some modernization.

diffstat:

 usr.bin/rpcgen/rpc_svcout.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r de075694bede -r e803c9548e50 usr.bin/rpcgen/rpc_svcout.c
--- a/usr.bin/rpcgen/rpc_svcout.c       Sat Nov 07 23:53:28 2015 +0000
+++ b/usr.bin/rpcgen/rpc_svcout.c       Sun Nov 08 01:59:31 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpc_svcout.c,v 1.30 2015/09/20 15:52:11 kamil Exp $    */
+/*     $NetBSD: rpc_svcout.c,v 1.31 2015/11/08 01:59:31 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.30 2015/09/20 15:52:11 kamil Exp $");
+__RCSID("$NetBSD: rpc_svcout.c,v 1.31 2015/11/08 01:59:31 christos Exp $");
 #endif
 #endif
 
@@ -652,7 +652,6 @@
        f_print(fout, "closedown(void)\n");
        f_print(fout, "{\n");
        f_print(fout, "\tif (_rpcsvcdirty == 0) {\n");
-       f_print(fout, "\t\textern fd_set svc_fdset;\n");
        f_print(fout, "\t\tstatic int size;\n");
        f_print(fout, "\t\tint i, openfd;\n");
        if (tirpcflag && pmflag) {
@@ -738,8 +737,6 @@
        }
        if (timerflag)
                f_print(fout, "\t\tint pmclose;\n");
-/* not necessary, defined in /usr/include/stdlib */
-/*     f_print(fout, "\t\textern char *getenv();\n");*/
        f_print(fout, "\n");
        f_print(fout, "\t\t_rpcpmstart = 1;\n");
        if (logflag)



Home | Main Index | Thread Index | Old Index