diff options
author | David Malone <dwmalone@FreeBSD.org> | 2002-09-04 23:29:10 +0000 |
---|---|---|
committer | David Malone <dwmalone@FreeBSD.org> | 2002-09-04 23:29:10 +0000 |
commit | f4ac32def255b5968bdd8150057b9c0d14595689 (patch) | |
tree | fb230419005f211ecea1e667385bde9886dbf0d8 /usr.bin/unvis | |
parent | d946bf789255a84ecbbbdfd07bffb48da063204f (diff) | |
download | src-f4ac32def255b5968bdd8150057b9c0d14595689.tar.gz src-f4ac32def255b5968bdd8150057b9c0d14595689.zip |
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
Notes
Notes:
svn path=/head/; revision=102944
Diffstat (limited to 'usr.bin/unvis')
-rw-r--r-- | usr.bin/unvis/unvis.c | 12 |
1 files changed, 4 insertions, 8 deletions
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; |