summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-27 19:43:02 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-27 19:43:02 +0000
commitb00fcba133e2170f5308eb02bfa9b9b8d7dea0a0 (patch)
treecc2381829bd6658e8c0cd731faafa3e3bc1a0ac2 /mdoc.c
parent5226c4fdcd61545e72ba42ed649a213a893e2411 (diff)
downloadmandoc-b00fcba133e2170f5308eb02bfa9b9b8d7dea0a0.tar.gz
main.c using fprintf instead of warnx for parse errors (like cc).
Error string is now file:line:col: message. Removed sed from vim -q example in manuals.7. Fixed column reporting (off by one).
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc.c b/mdoc.c
index 39e494b1..24d75560 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -657,10 +657,10 @@ static int
macrowarn(struct mdoc *m, int ln, const char *buf)
{
if ( ! (MDOC_IGN_MACRO & m->pflags))
- return(mdoc_verr(m, ln, 1,
+ return(mdoc_verr(m, ln, 0,
"unknown macro: %s%s",
buf, strlen(buf) > 3 ? "..." : ""));
- return(mdoc_vwarn(m, ln, 1, "unknown macro: %s%s",
+ return(mdoc_vwarn(m, ln, 0, "unknown macro: %s%s",
buf, strlen(buf) > 3 ? "..." : ""));
}