summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-01 17:00:05 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-01 17:00:05 +0000
commitf1a8864fde5f3b1c40584b393654bd14c8c6c394 (patch)
treec4dccb086b70a8268dc95e65df5640a32281a71a /main.c
parente0cef3fdf44432b3d1e6294ccbff5ed45e6eaf0c (diff)
downloadmandoc-f1a8864fde5f3b1c40584b393654bd14c8c6c394.tar.gz
Fix enum/int mixing.
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 6ee72119..68a67ed7 100644
--- a/main.c
+++ b/main.c
@@ -629,6 +629,7 @@ static void
parsebuf(struct curparse *curp, struct buf blk, int start)
{
struct buf ln;
+ enum rofferr rr;
int i, of, rc;
int pos; /* byte number in the ln buffer */
int lnn; /* line number in the real file */
@@ -743,11 +744,11 @@ parsebuf(struct curparse *curp, struct buf blk, int start)
of = 0;
rerun:
- rc = roff_parseln
+ rr = roff_parseln
(curp->roff, curp->line,
&ln.buf, &ln.sz, of, &of);
- switch (rc) {
+ switch (rr) {
case (ROFF_REPARSE):
parsebuf(curp, ln, 0);
pos = 0;