Deleted Added
full compact
rpc_main.c (267174) rpc_main.c (298089)
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 *

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

31#if 0
32#ifndef lint
33#ident "@(#)rpc_main.c 1.21 94/04/25 SMI"
34static char sccsid[] = "@(#)rpc_main.c 1.30 89/03/30 (C) 1987 SMI";
35#endif
36#endif
37
38#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 *

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

31#if 0
32#ifndef lint
33#ident "@(#)rpc_main.c 1.21 94/04/25 SMI"
34static char sccsid[] = "@(#)rpc_main.c 1.30 89/03/30 (C) 1987 SMI";
35#endif
36#endif
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/usr.bin/rpcgen/rpc_main.c 267174 2014-06-06 17:38:37Z bdrewery $");
39__FBSDID("$FreeBSD: head/usr.bin/rpcgen/rpc_main.c 298089 2016-04-15 22:31:22Z pfg $");
40
41/*
42 * rpc_main.c, Top level of the RPC protocol compiler.
43 * Copyright (C) 1987, Sun Microsystems, Inc.
44 */
45
46#include <err.h>
47#include <ctype.h>

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

972
973 struct stat buf;
974
975 if (infile) /* infile ! = NULL */
976 if (stat(infile, &buf) < 0)
977 {
978 warn("%s", infile);
979 crash();
40
41/*
42 * rpc_main.c, Top level of the RPC protocol compiler.
43 * Copyright (C) 1987, Sun Microsystems, Inc.
44 */
45
46#include <err.h>
47#include <ctype.h>

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

972
973 struct stat buf;
974
975 if (infile) /* infile ! = NULL */
976 if (stat(infile, &buf) < 0)
977 {
978 warn("%s", infile);
979 crash();
980 };
980 }
981 if (outfile) {
982 if (stat(outfile, &buf) < 0)
983 return; /* file does not exist */
984 else {
985 warnx("file '%s' already exists and may be overwritten", outfile);
986 crash();
987 }
988 }

--- 279 unchanged lines hidden ---
981 if (outfile) {
982 if (stat(outfile, &buf) < 0)
983 return; /* file does not exist */
984 else {
985 warnx("file '%s' already exists and may be overwritten", outfile);
986 crash();
987 }
988 }

--- 279 unchanged lines hidden ---