aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-01 06:03:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-01 06:03:13 +0000
commit690ce2ee67ae7b62772ac42f54c2c4df976bbbd0 (patch)
tree6fd2ca2b7cd0659e62687acacd946680722ff4ac /read.c
parentc68cbba22d595e6209d32633cbc4f64d2ce3e810 (diff)
downloadmandoc-690ce2ee67ae7b62772ac42f54c2c4df976bbbd0.tar.gz
mandoc-690ce2ee67ae7b62772ac42f54c2c4df976bbbd0.tar.zst
mandoc-690ce2ee67ae7b62772ac42f54c2c4df976bbbd0.zip
Use struct buf in libroff, it is very natural there
and reduces the number of arguments of many functions. While here, sprinkle some KNF. No functional change.
Diffstat (limited to 'read.c')
-rw-r--r--read.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/read.c b/read.c
index 22070231..5bd5de57 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.95 2014/11/01 04:08:43 schwarze Exp $ */
+/* $Id: read.c,v 1.96 2014/11/01 06:03:13 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -493,8 +493,7 @@ mparse_buf_r(struct mparse *curp, struct buf blk, size_t i, int start)
[curp->secondary->sz] = '\0';
}
rerun:
- rr = roff_parseln(curp->roff, curp->line,
- &ln.buf, &ln.sz, of, &of);
+ rr = roff_parseln(curp->roff, curp->line, &ln, &of);
switch (rr) {
case ROFF_REPARSE: