Deleted Added
full compact
rpc_sample.c (256281) rpc_sample.c (267444)
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *

--- 16 unchanged lines hidden (view full) ---

25 * Sun Microsystems, Inc.
26 * 2550 Garcia Avenue
27 * Mountain View, California 94043
28 */
29
30/* #pragma ident "@(#)rpc_sample.c 1.9 94/04/25 SMI" */
31
32#include <sys/cdefs.h>
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *

--- 16 unchanged lines hidden (view full) ---

25 * Sun Microsystems, Inc.
26 * 2550 Garcia Avenue
27 * Mountain View, California 94043
28 */
29
30/* #pragma ident "@(#)rpc_sample.c 1.9 94/04/25 SMI" */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: stable/10/usr.bin/rpcgen/rpc_sample.c 152398 2005-11-13 21:17:24Z dwmalone $");
33__FBSDID("$FreeBSD: stable/10/usr.bin/rpcgen/rpc_sample.c 267444 2014-06-13 15:04:21Z bdrewery $");
34
35/*
36 * rpc_sample.c, Sample client-server code outputter for the RPC protocol compiler
37 * Copyright (C) 1987, Sun Microsystems, Inc.
38 */
39
40#include <stdio.h>
41#include <string.h>

--- 223 unchanged lines hidden (view full) ---

265void
266write_sample_clnt_main(void)
267{
268 list *l;
269 definition *def;
270 version_list *vp;
271
272 f_print(fout, "\n\n");
34
35/*
36 * rpc_sample.c, Sample client-server code outputter for the RPC protocol compiler
37 * Copyright (C) 1987, Sun Microsystems, Inc.
38 */
39
40#include <stdio.h>
41#include <string.h>

--- 223 unchanged lines hidden (view full) ---

265void
266write_sample_clnt_main(void)
267{
268 list *l;
269 definition *def;
270 version_list *vp;
271
272 f_print(fout, "\n\n");
273 f_print(fout, "int\n");
273 f_print(fout, "main(int argc, char *argv[])\n{\n");
274
275 f_print(fout, "\tchar *host;");
276 f_print(fout, "\n\n\tif (argc < 2) {");
277 f_print(fout, "\n\t\tprintf(\"usage: %%s server_host\\n\", argv[0]);\n");
278 f_print(fout, "\t\texit(1);\n\t}");
279 f_print(fout, "\n\thost = argv[1];\n");
280

--- 13 unchanged lines hidden ---
274 f_print(fout, "main(int argc, char *argv[])\n{\n");
275
276 f_print(fout, "\tchar *host;");
277 f_print(fout, "\n\n\tif (argc < 2) {");
278 f_print(fout, "\n\t\tprintf(\"usage: %%s server_host\\n\", argv[0]);\n");
279 f_print(fout, "\t\texit(1);\n\t}");
280 f_print(fout, "\n\thost = argv[1];\n");
281

--- 13 unchanged lines hidden ---