summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-07 09:52:08 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-07 09:52:08 +0000
commit46333ce833349b3542096c725c78ada3ca4b2811 (patch)
treed0a814a8fa07ddca21b24dedd532cfd8c87aa866 /mdoc_validate.c
parent4b6281d011b796bb8e659d02bba89300b58df31b (diff)
downloadmandoc-46333ce833349b3542096c725c78ada3ca4b2811.tar.gz
Small clean-ups in error message usage.VERSION.1.7.23
Version.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 8541c8e2..fe8ac1be 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -853,14 +853,12 @@ post_bf(POST_ARGS)
head = mdoc->last->head;
if (mdoc->last->args && head->child)
- return(mdoc_verr(mdoc, mdoc->last->line,
- mdoc->last->pos, "one argument expected"));
+ return(mdoc_nerr(mdoc, mdoc->last, ELINE));
else if (mdoc->last->args)
return(1);
if (NULL == head->child || MDOC_TEXT != head->child->type)
- return(mdoc_verr(mdoc, mdoc->last->line,
- mdoc->last->pos, "text argument expected"));
+ return(mdoc_nerr(mdoc, mdoc->last, ELINE));
p = head->child->string;