diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-23 15:20:51 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-23 15:20:51 +0000 |
commit | 1b03ebdce412e8ef752ed49e9aba8d666cdc9bf2 (patch) | |
tree | 961feffeeaf7e4b586c02cd6ba5c3ba04fe0d90e /terminal.c | |
parent | 9e1962924d277421ea2bce83eed6738227fc0b54 (diff) | |
download | mandoc-1b03ebdce412e8ef752ed49e9aba8d666cdc9bf2.tar.gz mandoc-1b03ebdce412e8ef752ed49e9aba8d666cdc9bf2.tar.zst mandoc-1b03ebdce412e8ef752ed49e9aba8d666cdc9bf2.zip |
-man printing linked to -Ttree.
Diffstat (limited to 'terminal.c')
-rw-r--r-- | terminal.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: terminal.c,v 1.6 2009/03/22 19:10:48 kristaps Exp $ */ +/* $Id: terminal.c,v 1.7 2009/03/23 15:20:51 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org> * @@ -76,10 +76,14 @@ ascii_alloc(void) int -terminal_run(void *arg, const struct mdoc *mdoc) +terminal_run(void *arg, const struct man *man, + const struct mdoc *mdoc) { struct termp *p; + if (NULL == mdoc) + return(1); + p = (struct termp *)arg; if (NULL == p->symtab) |