diff options
Diffstat (limited to 'usr.bin/rpcgen/rpc_main.c')
-rw-r--r-- | usr.bin/rpcgen/rpc_main.c | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/usr.bin/rpcgen/rpc_main.c b/usr.bin/rpcgen/rpc_main.c index ac567b6bcb0..c4959e21988 100644 --- a/usr.bin/rpcgen/rpc_main.c +++ b/usr.bin/rpcgen/rpc_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_main.c,v 1.18 2003/04/14 19:59:36 deraadt Exp $ */ +/* $OpenBSD: rpc_main.c,v 1.19 2003/07/09 03:35:21 deraadt Exp $ */ /* $NetBSD: rpc_main.c,v 1.9 1996/02/19 11:12:43 pk Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -32,7 +32,7 @@ #ifndef lint static char sccsid[] = "@(#)rpc_main.c 1.30 89/03/30 (C) 1987 SMI"; -static char cvsid[] = "$OpenBSD: rpc_main.c,v 1.18 2003/04/14 19:59:36 deraadt Exp $"; +static char cvsid[] = "$OpenBSD: rpc_main.c,v 1.19 2003/07/09 03:35:21 deraadt Exp $"; #endif /* @@ -144,9 +144,7 @@ static void usage(void); void c_initialize(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { struct commandline cmd; @@ -217,9 +215,7 @@ main(argc, argv) * add extension to filename */ static char * -extendfile(path, ext) - char *path; - char *ext; +extendfile(char *path, char *ext) { char *file; char *res; @@ -249,9 +245,7 @@ extendfile(path, ext) * Open output file with given extension */ static void -open_output(infile, outfile) - char *infile; - char *outfile; +open_output(char *infile, char *outfile) { if (outfile == NULL) { @@ -274,7 +268,7 @@ open_output(infile, outfile) } static void -add_warning() +add_warning(void) { fprintf(fout, "/*\n"); fprintf(fout, " * Please do not edit this file.\n"); @@ -284,7 +278,7 @@ add_warning() /* clear list of arguments */ static void -clear_args() +clear_args(void) { int i; for (i = FIXEDARGS; i < ARGLISTLEN; i++) @@ -294,7 +288,7 @@ clear_args() /* make sure that a CPP exists */ static void -find_cpp() +find_cpp(void) { struct stat buf; @@ -319,9 +313,7 @@ find_cpp() * Open input file with given define for C-preprocessor */ static void -open_input(infile, define) - char *infile; - char *define; +open_input(char *infile, char *define) { int pd[2]; @@ -418,9 +410,7 @@ static char *valid_i_nettypes[] = { }; static int -check_nettype(name, list_to_check) - char *name; - char *list_to_check[]; +check_nettype(char *name, char *list_to_check[]) { int i; for (i = 0; list_to_check[i] != NULL; i++) { @@ -494,9 +484,8 @@ char rpcgen_table_dcl[] = "struct rpcgen_table {\n\ };\n"; -char * -generate_guard(pathname) - char *pathname; +static char * +generate_guard(char *pathname) { char *filename, *guard, *tmp; |