diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-01 22:37:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-01 22:37:15 +0000 |
commit | c9939e9971e983553a2f3f786d124427b6d4e16e (patch) | |
tree | f4e530c43b8a7079a018da09a4fd5240a264ba3f /mandoc.c | |
parent | 355ab2dc6a1499cee84317c7fbe304a5c006c3d1 (diff) | |
download | mandoc-c9939e9971e983553a2f3f786d124427b6d4e16e.tar.gz mandoc-c9939e9971e983553a2f3f786d124427b6d4e16e.tar.zst mandoc-c9939e9971e983553a2f3f786d124427b6d4e16e.zip |
Clean up the warnings related to document structure.
* Hierarchical naming of the related enum mandocerr items.
* Mention the offending macro, section title, or string.
While here, improve some wordings:
* Descriptive instead of imperative style.
* Uniform style for "missing" and "skipping".
* Where applicable, mention the fallback used.
Diffstat (limited to 'mandoc.c')
-rw-r--r-- | mandoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.80 2014/06/20 17:24:00 schwarze Exp $ */ +/* $Id: mandoc.c,v 1.81 2014/07/01 22:37:15 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -516,7 +516,7 @@ mandoc_normdate(struct mparse *parse, char *in, int ln, int pos) t = 0; else if (!a2time(&t, "$" "Mdocdate: %b %d %Y $", in) && !a2time(&t, "%b %d, %Y", in)) { - mandoc_msg(MANDOCERR_DATE_BAD, parse, ln, pos, NULL); + mandoc_msg(MANDOCERR_DATE_BAD, parse, ln, pos, in); t = 0; } out = t ? time2a(t) : NULL; |