=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rpcgen/rpc_util.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/rpcgen/rpc_util.c 2001/07/17 02:23:59 1.3 +++ src/usr.bin/rpcgen/rpc_util.c 2001/07/18 22:26:00 1.4 @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_util.c,v 1.3 2001/07/17 02:23:59 pvalchev Exp $ */ +/* $OpenBSD: rpc_util.c,v 1.4 2001/07/18 22:26:00 deraadt Exp $ */ /* $NetBSD: rpc_util.c,v 1.6 1995/08/29 23:05:57 cgd Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -41,7 +41,6 @@ #include #include #include -#include #include #include "rpc_scan.h" #include "rpc_parse.h" @@ -69,7 +68,6 @@ /* * Reinitialize the world */ -void reinitialize() { memset(curline, 0, MAXLINESIZE); @@ -81,7 +79,6 @@ /* * string equality */ -int streq(a, b) char *a; char *b; @@ -127,7 +124,7 @@ *l = lst; } -static int +static findit(def, type) definition *def; char *type; @@ -196,7 +193,7 @@ } } -static int +static typedefed(def, type) definition *def; char *type; @@ -208,7 +205,6 @@ } } -int isvectordef(type, rel) char *type; relation rel; @@ -282,7 +278,6 @@ * Something went wrong, unlink any files that we may have created and then * die. */ -void crash() { int i; @@ -405,7 +400,7 @@ return (sp->str); } -static void +static printbuf() { char c; @@ -414,7 +409,7 @@ # define TABSIZE 4 - for (i = 0; (c = curline[i]) != '\0'; i++) { + for (i = 0; c = curline[i]; i++) { if (c == '\t') { cnt = 8 - (i % TABSIZE); c = ' ';