summaryrefslogtreecommitdiffstats
path: root/usr.bin/colcrt
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1997-12-29 00:09:06 +0000
committeralex <alex@FreeBSD.org>1997-12-29 00:09:06 +0000
commit005e82d0d48c18bf9c8f7dd68fbdddaecd02fa38 (patch)
treed6173536ac119a8f4ca284ec466429ed22238d6c /usr.bin/colcrt
parent2d2c1486baa4d002f1ec27ce2fdbf344aa08d814 (diff)
downloadFreeBSD-src-005e82d0d48c18bf9c8f7dd68fbdddaecd02fa38.zip
FreeBSD-src-005e82d0d48c18bf9c8f7dd68fbdddaecd02fa38.tar.gz
-Wall cleanup.
Diffstat (limited to 'usr.bin/colcrt')
-rw-r--r--usr.bin/colcrt/colcrt.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/usr.bin/colcrt/colcrt.c b/usr.bin/colcrt/colcrt.c
index f3661a8..40fe5ce 100644
--- a/usr.bin/colcrt/colcrt.c
+++ b/usr.bin/colcrt/colcrt.c
@@ -41,7 +41,11 @@ static char copyright[] =
static char sccsid[] = "@(#)colcrt.c 8.1 (Berkeley) 6/6/93";
#endif /* not lint */
+#include <err.h>
+#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
/*
* colcrt - replaces col for crts with new nroff esp. when using tbl.
* Bill Joy UCB July 14, 1977
@@ -67,6 +71,9 @@ char printall;
FILE *f;
static void usage __P((void));
+static void pflush __P((int));
+static int plus __P((char, char));
+static void move __P((int, int));
int
main(argc, argv)
@@ -186,19 +193,21 @@ usage()
exit(1);
}
+static int
plus(c, d)
char c, d;
{
- return (c == '|' && d == '-' || d == '_');
+ return ((c == '|' && d == '-') || d == '_');
}
int first;
+static void
pflush(ol)
int ol;
{
- register int i, j;
+ register int i;
register char *cp;
char lastomit;
int l;
@@ -229,6 +238,7 @@ pflush(ol)
first = 1;
}
+static void
move(l, m)
int l, m;
{
OpenPOWER on IntegriCloud