From b4339b74aded4c38ebcfe3a2a9b37b900abb8874 Mon Sep 17 00:00:00 2001 From: dwmalone 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/unexpand/unexpand.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'usr.bin/unexpand/unexpand.c') diff --git a/usr.bin/unexpand/unexpand.c b/usr.bin/unexpand/unexpand.c index a1c5659..0d6b80c 100644 --- a/usr.bin/unexpand/unexpand.c +++ b/usr.bin/unexpand/unexpand.c @@ -66,9 +66,7 @@ static void usage(void); static void tabify(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int ch, failed; char *filename; @@ -110,14 +108,14 @@ main(argc, argv) } static void -usage() +usage(void) { fprintf(stderr, "usage: unexpand [-a] [-t tablist] [file ...]\n"); exit(1); } static void -tabify() +tabify(void) { int ch, dcol, doneline, limit, n, ocol; @@ -199,8 +197,7 @@ tabify() } static void -getstops(cp) - const char *cp; +getstops(const char *cp) { int i; -- cgit v1.1