summaryrefslogtreecommitdiffstats
path: root/man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-28 14:42:27 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-28 14:42:27 +0000
commite0c8ee70b0d6b84f57714a5446e2ecfeca8826b4 (patch)
treea958c1c720cac88b7740009ea1436b5c356e1eb7 /man.c
parent6c9bf65b847eba6ae5bf1d6bf9d72a29550bf824 (diff)
downloadmandoc-e0c8ee70b0d6b84f57714a5446e2ecfeca8826b4.tar.gz
mdoc(7) already uses the mandoc(1) -Ios argument in the footer line
when .Os has no argument, so do the same for man(7) when .TH has less than four arguments; there is no reason to treat both differently. Issue found following a question from Thomas Klausner <wiz at NetBSD>.
Diffstat (limited to 'man.c')
-rw-r--r--man.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/man.c b/man.c
index bc634341..8e8cf725 100644
--- a/man.c
+++ b/man.c
@@ -92,7 +92,8 @@ man_free(struct man *man)
}
struct man *
-man_alloc(struct roff *roff, struct mparse *parse, int quick)
+man_alloc(struct roff *roff, struct mparse *parse,
+ const char *defos, int quick)
{
struct man *p;
@@ -100,6 +101,7 @@ man_alloc(struct roff *roff, struct mparse *parse, int quick)
man_hash_init();
p->parse = parse;
+ p->defos = defos;
p->quick = quick;
p->roff = roff;