diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2002-09-04 23:29:10 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2002-09-04 23:29:10 +0000 |
commit | b4339b74aded4c38ebcfe3a2a9b37b900abb8874 (patch) | |
tree | fb230419005f211ecea1e667385bde9886dbf0d8 /usr.bin/vis/vis.c | |
parent | 228b93ce829543fee06561687a63c17a7e821dfd (diff) | |
download | FreeBSD-src-b4339b74aded4c38ebcfe3a2a9b37b900abb8874.zip FreeBSD-src-b4339b74aded4c38ebcfe3a2a9b37b900abb8874.tar.gz |
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
Diffstat (limited to 'usr.bin/vis/vis.c')
-rw-r--r-- | usr.bin/vis/vis.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.bin/vis/vis.c b/usr.bin/vis/vis.c index a9c031e..8a76d24 100644 --- a/usr.bin/vis/vis.c +++ b/usr.bin/vis/vis.c @@ -60,9 +60,7 @@ void process(FILE *); static void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { FILE *fp; int ch; @@ -129,7 +127,7 @@ main(argc, argv) static void -usage() +usage(void) { #ifdef DEBUG fprintf(stderr, "usage: vis [-cbflnostwd] [-F foldwidth] [file ...]\n"); @@ -140,13 +138,12 @@ usage() } void -process(fp) - FILE *fp; +process(FILE *fp) { static int col = 0; static char dummy[] = "\0"; - register char *cp = dummy+1; /* so *(cp-1) starts out != '\n' */ - register int c, rachar; + char *cp = dummy+1; /* so *(cp-1) starts out != '\n' */ + int c, rachar; char buff[5]; c = getc(fp); |