Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Dec 2013 11:31:29 +0000
From:      Doug Rabson <dfr@rabson.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org,  svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   Re: svn commit: r259912 - stable/9/usr.bin/rpcgen
Message-ID:  <CACA0VUgaMRBzGKuhfNSCvMqHXS-_mEL5ZSTMW%2BNtLd7LjnstGw@mail.gmail.com>
In-Reply-To: <201312261045.rBQAjHMC021064@svn.freebsd.org>
References:  <201312261045.rBQAjHMC021064@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bah! This was intended for head - feel free to back it out if anything
breaks.


On 26 December 2013 10:45, Doug Rabson <dfr@freebsd.org> wrote:

> Author: dfr
> Date: Thu Dec 26 10:45:17 2013
> New Revision: 259912
> URL: http://svnweb.freebsd.org/changeset/base/259912
>
> Log:
>   Generate client sample code which compiles without warnings.
>   For 'rpcgen -a', generate a makefile where 'make clean all' works.
>
> Modified:
>   stable/9/usr.bin/rpcgen/rpc_main.c
>
> Modified: stable/9/usr.bin/rpcgen/rpc_main.c
>
> ==============================================================================
> --- stable/9/usr.bin/rpcgen/rpc_main.c  Thu Dec 26 09:09:52 2013
>  (r259911)
> +++ stable/9/usr.bin/rpcgen/rpc_main.c  Thu Dec 26 10:45:17 2013
>  (r259912)
> @@ -780,6 +780,8 @@ clnt_output(const char *infile, const ch
>                 free(include);
>         } else
>                 f_print(fout, "#include <rpc/rpc.h>\n");
> +       f_print(fout, "#include <stdio.h>\n");
> +       f_print(fout, "#include <stdlib.h>\n");
>         tell = ftell(fout);
>         while ( (def = get_definition()) ) {
>                 has_program += write_sample_clnt(def);
> @@ -867,6 +869,10 @@ $(TARGETS_SVC.c:%%.c=%%.o) ");
>         f_print(fout, "all : $(CLIENT) $(SERVER)\n\n");
>         f_print(fout, "$(TARGETS) : $(SOURCES.x) \n");
>         f_print(fout, "\trpcgen $(RPCGENFLAGS) $(SOURCES.x)\n\n");
> +       if (allfiles) {
> +               f_print(fout, "\trpcgen -Sc $(RPCGENFLAGS) $(SOURCES.x) -o
> %s\n\n", clientname);
> +               f_print(fout, "\trpcgen -Ss $(RPCGENFLAGS) $(SOURCES.x) -o
> %s\n\n", servername);
> +       }
>         f_print(fout, "$(OBJECTS_CLNT) : $(SOURCES_CLNT.c)
> $(SOURCES_CLNT.h) \
>  $(TARGETS_CLNT.c) \n\n");
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACA0VUgaMRBzGKuhfNSCvMqHXS-_mEL5ZSTMW%2BNtLd7LjnstGw>