aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit8f61e237a680a38297c6101dc1a71a0b88a0474f (patch)
treeba839737be2694c0428b56b95ccba88529b157fc
parenta8956f17f2df33668bc794d12afe580b5e0424d8 (diff)
downloadmandoc-8f61e237a680a38297c6101dc1a71a0b88a0474f.tar.gz
mandoc-8f61e237a680a38297c6101dc1a71a0b88a0474f.tar.zst
mandoc-8f61e237a680a38297c6101dc1a71a0b88a0474f.zip
Small clean-ups in error message usage.VERSION_1_7_23
Version.
-rw-r--r--Makefile4
-rw-r--r--main.c4
-rw-r--r--mdoc_validate.c8
3 files changed, 7 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 839a805e..d60c0f37 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,8 @@ INSTALL_DATA = install -m 0444
INSTALL_LIB = install -m 0644
INSTALL_MAN = $(INSTALL_DATA)
-VERSION = 1.7.22
-VDATE = 5 July 2009
+VERSION = 1.7.23
+VDATE = 7 July 2009
VFLAGS = -DVERSION=\"$(VERSION)\"
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g
diff --git a/main.c b/main.c
index f97c1fc2..26988773 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.37 2009/07/06 13:08:12 kristaps Exp $ */
+/* $Id: main.c,v 1.38 2009/07/07 09:52:08 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -643,7 +643,7 @@ mwarn(void *arg, int line, int col, const char *msg)
if ( ! (curp->wflags & WARN_WALL))
return(1);
- warnx("%s:%d: syntax warning: %s (column %d)",
+ warnx("%s:%d: warning: %s (column %d)",
curp->file, line, msg, col);
if ( ! (curp->wflags & WARN_WERR))
diff --git a/mdoc_validate.c b/mdoc_validate.c
index e6c30715..c4b769e4 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.23 2009/07/06 13:04:52 kristaps Exp $ */
+/* $Id: mdoc_validate.c,v 1.24 2009/07/07 09:52:08 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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;