Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2014 15:04:21 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r267444 - stable/10/usr.bin/rpcgen
Message-ID:  <201406131504.s5DF4L7n055482@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Fri Jun 13 15:04:21 2014
New Revision: 267444
URL: http://svnweb.freebsd.org/changeset/base/267444

Log:
  MFC r267174:
  
    Fix some rpcgen sample file issues.
  
  PR:	185582

Modified:
  stable/10/usr.bin/rpcgen/rpc_main.c
  stable/10/usr.bin/rpcgen/rpc_sample.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/rpcgen/rpc_main.c
==============================================================================
--- stable/10/usr.bin/rpcgen/rpc_main.c	Fri Jun 13 12:39:06 2014	(r267443)
+++ stable/10/usr.bin/rpcgen/rpc_main.c	Fri Jun 13 15:04:21 2014	(r267444)
@@ -872,8 +872,8 @@ $(TARGETS_SVC.c) \n\n");
 	f_print(fout, "\t$(CC) -o $(CLIENT) $(OBJECTS_CLNT) \
 $(LDLIBS) \n\n");
 	f_print(fout, "$(SERVER) : $(OBJECTS_SVC) \n");
-	f_print(fout, "\t$(CC) -o $(SERVER) $(OBJECTS_SVC) $(LDLIBS)\n\n ");
-	f_print(fout, "clean:\n\t $(RM) -f core $(TARGETS) $(OBJECTS_CLNT) \
+	f_print(fout, "\t$(CC) -o $(SERVER) $(OBJECTS_SVC) $(LDLIBS)\n\n");
+	f_print(fout, "clean:\n\t rm -f core $(TARGETS) $(OBJECTS_CLNT) \
 $(OBJECTS_SVC) $(CLIENT) $(SERVER)\n\n");
 }
 

Modified: stable/10/usr.bin/rpcgen/rpc_sample.c
==============================================================================
--- stable/10/usr.bin/rpcgen/rpc_sample.c	Fri Jun 13 12:39:06 2014	(r267443)
+++ stable/10/usr.bin/rpcgen/rpc_sample.c	Fri Jun 13 15:04:21 2014	(r267444)
@@ -270,6 +270,7 @@ write_sample_clnt_main(void)
 	version_list *vp;
 
 	f_print(fout, "\n\n");
+	f_print(fout, "int\n");
 	f_print(fout, "main(int argc, char *argv[])\n{\n");
 
 	f_print(fout, "\tchar *host;");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406131504.s5DF4L7n055482>