diff options
author | Philippe Charnier <charnier@FreeBSD.org> | 2002-07-21 12:55:04 +0000 |
---|---|---|
committer | Philippe Charnier <charnier@FreeBSD.org> | 2002-07-21 12:55:04 +0000 |
commit | 75863a6dbbcb1450be4b8774a56f059e70f534cd (patch) | |
tree | b7b64d6f677d73a28bdc53eeb9c62b73bdfdcb45 /usr.bin/rpcgen/rpc_tblout.c | |
parent | 53aa54b8bfa356cd854e9863b120111945dd2a69 (diff) | |
download | src-75863a6dbbcb1450be4b8774a56f059e70f534cd.tar.gz src-75863a6dbbcb1450be4b8774a56f059e70f534cd.zip |
Removal of spaces at EOL. Add __FBSDID. New function xmalloc, xrealloc,
xstrdup. There is a crash() function that do cleaning before exiting the
program. The new functions are wrappers that make use of crash() in case
of allocation failure. warn, exit -> err.
Reviewed by: alfred
Notes
Notes:
svn path=/head/; revision=100441
Diffstat (limited to 'usr.bin/rpcgen/rpc_tblout.c')
-rw-r--r-- | usr.bin/rpcgen/rpc_tblout.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/usr.bin/rpcgen/rpc_tblout.c b/usr.bin/rpcgen/rpc_tblout.c index 9488f76fbb6c..e23e058bc534 100644 --- a/usr.bin/rpcgen/rpc_tblout.c +++ b/usr.bin/rpcgen/rpc_tblout.c @@ -5,38 +5,39 @@ * may copy or modify Sun RPC without charge, but are not authorized * to license or distribute it to anyone else except as part of a product or * program developed by the user. - * + * * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * + * * Sun RPC is provided with no support and without any obligation on the * part of Sun Microsystems, Inc. to assist in its use, correction, * modification or enhancement. - * + * * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC * OR ANY PART THEREOF. - * + * * In no event will Sun Microsystems, Inc. be liable for any lost revenue * or profits or other special, indirect and consequential damages, even if * Sun has been advised of the possibility of such damages. - * + * * Sun Microsystems, Inc. * 2550 Garcia Avenue * Mountain View, California 94043 */ -#ident "@(#)rpc_tblout.c 1.11 93/07/05 SMI" +#ident "@(#)rpc_tblout.c 1.11 93/07/05 SMI" -#ifndef lint #if 0 +#ifndef lint static char sccsid[] = "@(#)rpc_tblout.c 1.4 89/02/22 (C) 1988 SMI"; #endif -static const char rcsid[] = - "$FreeBSD$"; #endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + /* * rpc_tblout.c, Dispatch table outputter for the RPC protocol compiler * Copyright (C) 1989, Sun Microsystems, Inc. @@ -133,7 +134,7 @@ write_table(def) /* argument info */ if( proc->arg_num > 1 ) printit((char*) NULL, proc->args.argname ); - else + else /* do we have to do something special for newstyle */ printit( proc->args.decls->decl.prefix, proc->args.decls->decl.type ); |