From: Kristaps Dzonsons Date: Wed, 1 Dec 2010 17:00:05 +0000 (+0000) Subject: Fix enum/int mixing. X-Git-Tag: VERSION_1_10_7~21 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/c6cc6d2cdc21391e0fed1b0e6fd715071bee1879?ds=sidebyside Fix enum/int mixing. --- diff --git a/main.c b/main.c index 16b54def..4c7db9c8 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.113 2010/12/01 16:54:25 kristaps Exp $ */ +/* $Id: main.c,v 1.114 2010/12/01 17:00:05 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -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;