summaryrefslogtreecommitdiffstats
path: root/usr.bin/vis/foldit.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-12-03 21:40:07 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-12-03 21:40:07 +0000
commit2d98aab133596940cfc6395d8b72109fdea6cdc2 (patch)
treecd00828524dc37ab2e6ebd1a53b20a72027b0d34 /usr.bin/vis/foldit.c
parent56460a2eb0941ab9a88942ea6241105379db4fb9 (diff)
downloadFreeBSD-src-2d98aab133596940cfc6395d8b72109fdea6cdc2.zip
FreeBSD-src-2d98aab133596940cfc6395d8b72109fdea6cdc2.tar.gz
Some warns cleanups - I think this is still not warns clean on the alpha.
Diffstat (limited to 'usr.bin/vis/foldit.c')
-rw-r--r--usr.bin/vis/foldit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/vis/foldit.c b/usr.bin/vis/foldit.c
index 6cf63f3..898e341 100644
--- a/usr.bin/vis/foldit.c
+++ b/usr.bin/vis/foldit.c
@@ -44,6 +44,7 @@ static const char rcsid[] =
int
foldit(chunk, col, max)
char *chunk;
+ int col, max;
{
register char *cp;
@@ -60,7 +61,7 @@ again:
col = 0;
break;
case '\t':
- col = col + 8 &~ 07;
+ col = (col + 8) &~ 07;
break;
case '\b':
col = col ? col - 1 : 0;
OpenPOWER on IntegriCloud