diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-11 19:37:00 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-11 19:37:00 +0000 |
commit | b96c4feac3240b0841c9ecf67b07da0607aa27b5 (patch) | |
tree | 60b7e6d126c09cb88522d0f68c4e6410e0d6f9de /man_validate.c | |
parent | 5e455d86a5a5d8a59d1be5988f9769217208b603 (diff) | |
download | mandoc-b96c4feac3240b0841c9ecf67b07da0607aa27b5.tar.gz |
Style message about legacy man(7) date format in mdoc(7) documents
and operating system dependent messages about missing or unexpected
Mdocdate; inspired by mdoclint(1).
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/man_validate.c b/man_validate.c index ee74da7d..64f54a4f 100644 --- a/man_validate.c +++ b/man_validate.c @@ -167,7 +167,7 @@ check_root(CHKARGS) man->meta.title = mandoc_strdup(""); man->meta.msec = mandoc_strdup(""); man->meta.date = man->quick ? mandoc_strdup("") : - mandoc_normdate(man->parse, NULL, n->line, n->pos); + mandoc_normdate(man, NULL, n->line, n->pos); } } @@ -323,8 +323,7 @@ post_TH(CHKARGS) if (n && n->string && '\0' != n->string[0]) { man->meta.date = man->quick ? mandoc_strdup(n->string) : - mandoc_normdate(man->parse, n->string, - n->line, n->pos); + mandoc_normdate(man, n->string, n->line, n->pos); } else { man->meta.date = mandoc_strdup(""); mandoc_msg(MANDOCERR_DATE_MISSING, man->parse, |