summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-30 12:58:21 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-30 12:58:21 +0000
commit1825ddd5edbb59f71fa3505747e772b6e10bc773 (patch)
tree5b7e05a4f77ea568caa3c27f37a682c551f21990 /mdoc_validate.c
parent146dcfc953f48acd462342b3dfc86200e3e0a195 (diff)
downloadmandoc-1825ddd5edbb59f71fa3505747e772b6e10bc773.tar.gz
better name and wording for the last two non-generic errors
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 37236293..e5d10bc0 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -2376,7 +2376,8 @@ post_os(POST_ARGS)
#else /*!OSNAME */
if (NULL == defbuf) {
if (-1 == uname(&utsname)) {
- mdoc_nmsg(mdoc, n, MANDOCERR_UNAME);
+ mandoc_msg(MANDOCERR_OS_UNAME, mdoc->parse,
+ n->line, n->pos, "Os");
defbuf = mandoc_strdup("UNKNOWN");
} else
mandoc_asprintf(&defbuf, "%s %s",