From f4ac32def255b5968bdd8150057b9c0d14595689 Mon Sep 17 00:00:00 2001 From: David Malone Date: Wed, 4 Sep 2002 23:29:10 +0000 Subject: ANSIify function definitions. Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5 --- usr.bin/unvis/unvis.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'usr.bin/unvis') diff --git a/usr.bin/unvis/unvis.c b/usr.bin/unvis/unvis.c index cfcf41bf8ca0..395c9adaefb0 100644 --- a/usr.bin/unvis/unvis.c +++ b/usr.bin/unvis/unvis.c @@ -55,9 +55,7 @@ void process(FILE *, const char *); static void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { FILE *fp; int ch; @@ -85,18 +83,16 @@ main(argc, argv) } static void -usage() +usage(void) { fprintf(stderr, "usage: unvis [file ...]\n"); exit(1); } void -process(fp, filename) - FILE *fp; - const char *filename; +process(FILE *fp, const char *filename) { - register int offset = 0, c, ret; + int offset = 0, c, ret; int state = 0; char outc; -- cgit v1.2.3